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

# Remove Contact from List

> Remove a single contact's membership from a list without deleting the contact

## Request

### Path Parameters

<ParamField path="list_id" type="string" required>
  The list's unique ID (UUID)
</ParamField>

<ParamField path="contact_id" type="string" required>
  The contact's unique ID (UUID)
</ParamField>

### Headers

```
Authorization: Bearer wbk_your_api_key_here
```

<Note>
  Requires an API key with the `contacts:write` permission. Only the list membership is removed — the contact itself is preserved. Fires the `list.contacts_removed` webhook event.
</Note>

## Response

<ResponseField name="data" type="object">
  <Expandable title="properties">
    <ResponseField name="removed" type="boolean">
      Always `true` on success
    </ResponseField>

    <ResponseField name="list_id" type="string">
      ID of the list
    </ResponseField>

    <ResponseField name="contact_id" type="string">
      ID of the contact that was removed from the list
    </ResponseField>
  </Expandable>
</ResponseField>

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://data.leadlex.com/functions/v1/api-gateway/v1/lists/l1b2c3d4-e5f6-7890-abcd-ef1234567890/contacts/123e4567-e89b-12d3-a456-426614174000 \
    -H "Authorization: Bearer wbk_your_api_key_here"
  ```

  ```python Python theme={null}
  import requests

  API_KEY = "wbk_your_api_key_here"
  BASE_URL = "https://data.leadlex.com/functions/v1/api-gateway"
  LIST_ID = "l1b2c3d4-e5f6-7890-abcd-ef1234567890"
  CONTACT_ID = "123e4567-e89b-12d3-a456-426614174000"

  response = requests.delete(
      f"{BASE_URL}/v1/lists/{LIST_ID}/contacts/{CONTACT_ID}",
      headers={"Authorization": f"Bearer {API_KEY}"},
  )
  ```

  ```javascript JavaScript theme={null}
  const LIST_ID = 'l1b2c3d4-e5f6-7890-abcd-ef1234567890';
  const CONTACT_ID = '123e4567-e89b-12d3-a456-426614174000';

  const response = await fetch(
    `https://data.leadlex.com/functions/v1/api-gateway/v1/lists/${LIST_ID}/contacts/${CONTACT_ID}`,
    {
      method: 'DELETE',
      headers: { 'Authorization': 'Bearer wbk_your_api_key_here' },
    }
  );
  ```
</CodeGroup>

### Example Response

```json theme={null}
{
  "data": {
    "removed": true,
    "list_id": "l1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "contact_id": "123e4567-e89b-12d3-a456-426614174000"
  }
}
```

## Errors

| Status | Code                       | Description                          |
| ------ | -------------------------- | ------------------------------------ |
| 401    | `invalid_key`              | Invalid or expired API key           |
| 403    | `insufficient_permissions` | Missing `contacts:write` permission  |
| 404    | `list_not_found`           | No list with this ID                 |
| 404    | `membership_not_found`     | Contact is not a member of this list |
| 429    | `rate_limited`             | Rate limit exceeded                  |
