# Remove Lead from Campaign

> Remove a lead from a campaign. Campaign must not be active.

> Documentation index: https://www.foxreach.io/docs/llms.txt lists every page of these docs. Each page is also served as Markdown: add `.md` to its URL.

`DELETE` https://api.foxreach.io/api/v1/campaigns/{campaign_id}/leads/{lead_id}

## Path Parameters

- `campaign_id` string path required

  The unique identifier of the campaign.

- `lead_id` string path required

  The unique identifier of the lead to remove.

## Response

Returns a confirmation of removal.

**Request example**

```bash cURL
curl -X DELETE "https://api.foxreach.io/api/v1/campaigns/cmp_abc123/leads/cld_xyz789" \
  -H "X-API-Key: otr_your_key"
```

```python Python SDK
import requests

response = requests.delete(
    "https://api.foxreach.io/api/v1/campaigns/cmp_xyz789/leads/cld_lead1",
    headers={"X-API-Key": "otr_your_key"},
)
result = response.json()
```

```typescript TypeScript SDK
const response = await fetch(
  "https://api.foxreach.io/api/v1/campaigns/cmp_xyz789/leads/cld_lead1",
  {
    method: "DELETE",
    headers: { "X-API-Key": "otr_your_key" },
  }
);
const result = await response.json();
```

**Response example**

```json
{
  "data": {
    "removed": true
  }
}
```

## Errors

| Status | Description |
|--------|-------------|
| `400` | Cannot remove leads from an active campaign |
| `404` | Lead not found in campaign |
| `404` | Campaign not found |

## Rate Limit

- **120 requests per minute, shared by every `write` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`write`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns (`Retry-After`, exponential backoff, monitoring `X-RateLimit-Remaining`), see [Rate Limiting](https://www.foxreach.io/docs/rate-limiting).
