Delete an email campaign
DELETE /campaigns/{uuid}
/campaigns/{uuid}Permanently deletes an email campaign together with its statistics and tracked links. It cannot be undone. A scheduled campaign is cancelled and will not go out; emails already delivered are not recalled.
When to use: To remove a draft you no longer need, or an old campaign and its results.
When not to use: To stop a scheduled campaign but keep it, use campaign_unschedule. To keep a copy of it before deleting, use duplicate_campaign. For an SMS campaign, use delete_sms_campaign. Automation campaigns cannot be deleted.
Side effects: Deletes the campaign, its statistics and its tracked links, whatever its status. Contacts and their activity in other campaigns are not affected.
Permissions: Requires the author role or higher, or the marketing.campaigns.delete capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the email campaign (the uuid field returned by list_campaigns).
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X DELETE "https://api.easymailing.com/campaigns/8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35" \ -H "X-Auth-Token: YOUR_API_KEY"