> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Contact Segment

> Remove a contact from a specific segment.

Removes the membership association between a contact and a segment.

### Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the contact.
</ParamField>

<ParamField path="segmentId" type="string" required>
  The unique identifier of the segment.
</ParamField>

### Response

<ResponseField name="data" type="object">
  <ResponseField name="success" type="boolean">Indicates if deletion was successful.</ResponseField>
  <ResponseField name="contactId" type="string">The contact ID.</ResponseField>
  <ResponseField name="segmentId" type="string">The segment ID.</ResponseField>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://api.mailofly.com/api/v1/contacts/cnt_123/segments/seg_vip_customers \
    -H "Authorization: Bearer mf_live_your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "success": true,
      "contactId": "cnt_123",
      "segmentId": "seg_vip_customers"
    }
  }
  ```
</ResponseExample>


## Related topics

- [Delete Segment](/api/segments/delete-segment.md)
- [Delete Contact](/api/contacts/delete-contact.md)
- [Delete Contact Property](/api/contact-properties/delete-contact-property.md)
- [List Segment Contacts](/api/segments/list-segment-contacts.md)
- [Add Contact to Segment](/api/contacts/add-contact-to-segment.md)
