Calls & Campaigns
Delete Campaign
Permanently delete a campaign and all associated data
DELETE
Delete Campaign
Permanently delete a campaign and all associated data including calls, files, and statistics. This action cannot be undone.Endpoint
Path parameters
The unique identifier of the campaign.
Request headers
Bearer token for authentication. Format:
Bearer talq_your_environment_token_hereExample requests
Response
Success Response (200 OK)
Response fields
Indicates if the operation was successful.
Success message describing the operation.
Error responses
404 Not Found
401 Unauthorized
403 Forbidden
409 Conflict
500 Server Error
Error codes
| Code | Description | HTTP Status |
|---|---|---|
CAMPAIGN_NOT_FOUND | Specified campaign does not exist | 404 |
INVALID_TOKEN | Authentication token is invalid or missing | 401 |
FORBIDDEN | Cannot delete campaign in current state | 403 |
CONFLICT | Campaign has active operations that prevent deletion | 409 |
SERVER_ERROR | Internal server error occurred | 500 |
Deletion rules
| Campaign Status | Can Delete | Notes |
|---|---|---|
draft | Yes | Safe to delete |
active | No | Must pause or cancel first |
paused | Yes | Safe to delete |
completed | Yes | Safe to delete |
cancelled | Yes | Safe to delete |
Important notes
Active campaigns. Active campaigns cannot be deleted. You must pause or cancel them first.
Associated data. Deleting a campaign also removes all associated calls, files, and statistics.
No confirmation. There is no confirmation step - the deletion happens immediately.
Related endpoints
- Get Campaign:
GET /api/v1/campaigns/{campaign_id} - Update Campaign Status:
PATCH /api/v1/campaigns/{campaign_id}/status - Create Campaign:
POST /api/v1/campaigns - Update Campaign:
PUT /api/v1/campaigns/{campaign_id} - List Campaigns:
GET /api/v1/campaigns