Remove People from Guestlist

I have a membership that I sell access to, and I want to remove someone from the guestlist in Gather when they stop paying for their membership or when they cancel their membership.

I figured out how to add them to the guestlist with a zapier webhook when they join the membership thanks to someone else’s post about it, but I can’t work out how to remove them with the API.