CD·04
Delete a Campaign
Quick answer
Deleting cannot be undone. If you might need the campaign again, archive it instead.
What deleting does#
- Delivery stops at once. If a search is running for the campaign, it is stopped first.
- Credits that were set aside for visits or clicks that had not started go back to your wallet.
- Visits or clicks that were already underway finish and are charged as usual.
- Until they have finished, the campaign shows Deletion in progress. It then disappears on its own, usually within a few minutes.
- A deleted campaign cannot be restored.
Delete in the dashboard#
- Open the campaign from Campaigns.
- Click More, then Delete campaign.
- Confirm with Delete campaign.
Delete by API#
- Deleting needs its own permission. Tick Can delete campaigns when you create the key. It is off by default, and a key created without it can never delete.
- Call
GET /api/v1/account/campaigns/{id}/deletion-previewfirst. It shows what deleting does and returns aconfirm_tokenthat is valid for 10 minutes. - Then send
DELETE /api/v1/account/campaigns/{id}with the headerX-Confirm-Token. If the campaign changed since the preview, the answer is409: get a new preview. 200means deleted.202withdeletion_pendingmeans delivery has stopped and the campaign disappears once the visits underway are finished. A repeated request is safe.- If a search for the campaign is still starting, the answer is
409withRetry-After: 30. Nothing has changed. Try again after 30 seconds.
Delete with an AI assistant#
- When you connect an AI app, tick Allow deleting campaigns. It is off by default.
- Deleting takes two steps: the assistant first gets a preview of the campaign to show you, and it can only delete with the code from that preview. Check the campaign it shows before you agree.
Was this article helpful?
Still need help?
Open a ticket from your dashboard. Include your project ID and a screenshot for the fastest help.