resend.removeContactFromSegment removes membership without deleting the contact.
automations/remove-resend-segment-member.automation.ts
contactId is an ID or email and segmentId is the existing segment ID. Optional second argument { account } selects the binding. Returns { object: "contact_segment"; contactId; segmentId; deleted }. The contact remains in Resend and retains memberships in other segments.