> For the complete documentation index, see [llms.txt](https://docs.bird.com/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bird.com/api/contacts-api/api-reference/manage-contact-lists/remove-contacts-from-a-list.md).

# Remove contacts from a list

{% openapi src="<https://global--openapi-specs--151603429280--use1.s3.us-east-1.amazonaws.com/joined-specs/openapi.yml>" path="/workspaces/{workspaceId}/lists/{listId}/contacts" method="delete" %}
<https://global--openapi-specs--151603429280--use1.s3.us-east-1.amazonaws.com/joined-specs/openapi.yml>
{% endopenapi %}

## Examples

Let's establish some of our data that will be used in the following examples:

* **Workspace ID**: a1405560-c8d3-4b1a-877d-3f449ad95352
* **AccessKey:** abcd
* **List ID**: 123e4567-e89b-12d3-a456-426614174000
* **Contact ID**: 12bd0e40-9361-4e32-8b26-99b4ab7eae09
* **Contact Identifier**:

  `"identifiers": [`\
  `{ "key": "emailaddress", "value": "test@example.com" },`\
  `{ "key": "phonenumber", "value": "+31600000000" } ]`

### Remove contacts from a list using Contact ID

In this example, we are removing contacts from a list given both IDs.

{% tabs fullWidth="true" %}
{% tab title="Request" %}
{% code fullWidth="true" %}

```bash
curl -X DELETE "https://api.bird.com/workspaces/a1405560-c8d3-4b1a-877d-3f449ad95352/lists/123e4567-e89b-12d3-a456-426614174000/contacts" \
-H "Content-Type: application/json" \
-H "Authorization: AccessKey abcd" \
-d '{
  "contacts": ["12bd0e40-9361-4e32-8b26-99b4ab7eae09"]
}'
```

{% endcode %}
{% endtab %}

{% tab title="Response (200 OK)" %}

```json
{
  "itemsProcessed": 1
}
```

{% endtab %}
{% endtabs %}

### Remove contacts from a list using Contact Identifiers

In this example, we are removing contacts from a list given contact identifiers

{% tabs fullWidth="true" %}
{% tab title="Request" %}

```bash
curl -X POST 'https://api.bird.com/workspaces/a1405560-c8d3-4b1a-877d-3f449ad95352/lists/123e4567-e89b-12d3-a456-426614174000/contacts' \
  -H "Authorization: AccessKey abcd" \
  -H 'Content-Type: application/json' \
--data-raw '{
	"identifiers": [
		{ "key": "emailaddress", "value": "test@example.com" }, 
		{ "key": "phonenumber", "value": "+31600000000" }
	]
}'
```

{% endtab %}

{% tab title="Response (200 - OK)" %}

```
{
  "itemsProcessed": 1
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bird.com/api/contacts-api/api-reference/manage-contact-lists/remove-contacts-from-a-list.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
