> ## 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.

# Delete Leads

> Permanently delete up to 10,000 leads from your account, including from every campaign and list

> [!WARNING]
>
> This permanently deletes the leads from your whole account: from every campaign, list and tag; their unsent emails are stopped. It cannot be undone and has no dry run. To remove leads from specific campaigns only, use [Delete Leads from Campaigns](https://api.smartlead.ai/api-reference/leads/delete-from-campaigns.md), which has `dry_run`.

Main account keys only: a client API key gets 401 `Not authorized`. The response is `ok: true` even when some ids do not exist or are not yours (those are skipped), so it does not confirm how many leads were deleted.

## Query Parameters

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

Your SmartLead API key

## Request Body

Send either `leadIds`, or `allLeads: true` (not both).

**leadIds** `array`

Lead ids to delete, 1 to 10,000. Required unless `allLeads` is `true`.

**allLeads** `boolean` (default: false)

`true` deletes the leads that match `filters` (the All Leads list filters), newest first, up to 10,000 per call. With no `filters` it deletes up to 10,000 of your leads.

**filters** `object`

All Leads list filters, used only with `allLeads: true`.

```bash cURL theme={null}
curl -X DELETE "https://server.smartlead.ai/api/v1/leads/delete?api_key=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"leadIds": [5001, 5002]}'
```

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

response = requests.delete(
    "https://server.smartlead.ai/api/v1/leads/delete",
    params={"api_key": "YOUR_API_KEY"},
    json={"leadIds": [5001, 5002]},
)
print(response.json())
```

```json 200 theme={null}
{
  "ok": true,
  "message": "Leads deleted successfully"
}
```

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

```json 500 theme={null}
{
  "ok": false,
  "message": "Error deleting leads"
}
```

## Related Endpoints

* [Delete Leads from Campaigns](https://api.smartlead.ai/api-reference/leads/delete-from-campaigns.md) - campaign-scoped, with a dry run
* [Delete Lead from Campaign](https://api.smartlead.ai/api-reference/leads/delete.md)


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