> ## Documentation Index
> Fetch the complete documentation index at: /docs/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 via the Mailofly API.

### Path Parameters

**id** `string` *required*

The unique identifier of the contact.

**segmentId** `string` *required*

The unique identifier of the segment.

### Response

**data** `object`

**success** `boolean`

Indicates if deletion was successful.

**contactId** `string`

The contact ID.

**segmentId** `string`

The segment ID.

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

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.