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

# Bulk Delete from Block List

> Remove up to 1000 block list entries by ID in one request

Removes several entries from your domain and email block list at once. Only entries that belong to your account are removed; IDs that are not yours are skipped. Get the IDs from [Get Domain Block List](https://api.smartlead.ai/api-reference/utilities/domain-block-list.md#get-domain-block-list). To remove one entry, use [Delete from Block List](https://api.smartlead.ai/api-reference/utilities/domain-block-list.md#delete-from-block-list).

> [!WARNING]
>
> Removed entries are no longer blocked: leads at those emails or domains can be emailed again by your campaigns.

> [!NOTE]
>
> Client API keys get `401 Not authorized` on this endpoint, the same as the other block list endpoints.

## Query Parameters

**api\_key** `string` *required*

Your SmartLead API key

## Request Body

**ids** `array` *required*

Block list entry IDs (positive integers, no duplicates). 1 to 1000 IDs.

```bash cURL theme={null}
curl -X POST "https://server.smartlead.ai/api/v1/leads/domain-block-list/bulk-delete?api_key=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ids": [101, 102, 103]}'
```

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

response = requests.post(
    "https://server.smartlead.ai/api/v1/leads/domain-block-list/bulk-delete",
    params={"api_key": "YOUR_API_KEY"},
    json={"ids": [101, 102, 103]},
)
print(response.json())
```

## Response Codes

**200** `Success`

At least one entry was removed. `data.deleted_count` is how many.

**400** `Bad Request`

`ids` is missing, empty, longer than 1000, has duplicates or values that are not positive integers, the body has other keys, or an unknown query parameter

**401** `Unauthorized`

Invalid or missing API key, or a client API key

**404** `Not Found`

None of the IDs is a block list entry in your account; nothing was removed

**500** `Internal Server Error`

The delete failed; retry the request

```json 200 - Success theme={null}
{
  "message": "Domain block list entries deleted successfully",
  "data": { "deleted_count": 2 }
}
```

```json 404 - Not Found theme={null}
{
  "error": "Domain block list entries not found"
}
```

```json 401 - Client API key theme={null}
{
  "message": "Not authorized"
}
```

```json 500 - Internal Server Error theme={null}
{
  "error": "Error deleting domain block list entries"
}
```


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