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

# DELETE Delete Campaign

> Permanently delete a campaign.

## Delete campaign

`DELETE /api/campaigns/:id`

Delete a campaign from the system. Only draft campaigns can be deleted.

### Headers

**Cookie** `string` *required*

Session cookie (login via POST /api/auth/login)

### Path parameters

**id** `integer` *required*

Campaign ID.

```bash cURL theme={null}
curl -X DELETE https://zeplo.ai/api/campaigns/26 \
  -H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
```

```json Response theme={null}
{
  "success": true,
  "message": "Campaign deleted successfully"
}
```

> [!WARNING]
>
> Only campaigns with `draft` status can be deleted. Running, paused, or completed campaigns must be cancelled first.


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