Running campaigns cannot be deleted. Stop the campaign first using the stop endpoint.
This action is irreversible. All campaign data, contacts, and execution history will be permanently deleted.
Path Parameters
campaign_id(integer, required): The unique identifier of the campaign
Response
Response
What Gets Deleted
When you delete a campaign, the following data is permanently removed:- Campaign configuration and settings
- All imported contacts
- Execution history and logs
- Schedule configurations
- Import history records
Example Code
cURL
Python
JavaScript
Error Responses
| Status Code | Description |
|---|---|
| 400 | Cannot delete running campaign - stop it first |
| 404 | Campaign not found |
| 401 | Unauthorized - invalid or missing API key |
Best Practices
- Export data first if you need to keep records of the campaign results
- Stop running campaigns before attempting to delete
- Consider pausing instead of deleting if you might need the campaign later