Skip to content

Delete Automation

Tool name: delete-automation

Deletes an automation that is neither active nor scheduled, including waiting contacts, statistics, system tags and goal history, without undo. With contact history the first call is refused with counts; repeat with deleteContactHistory=true. Other dependencies block deletion. Referenced emails remain. Stop an active automation first with stop-automation.

Input schema

automationIdinteger, >= 1required

ID of the automation to delete

revisionstring^[a-f0-9]{64}$required

Current revision from get-automation

confirmboolean

true only when the user asked to delete this automation

Default:false
deleteContactHistoryboolean

true only after the user agreed to lose its contact history; the first refusal names it

Default:false
accountIdnull or integer, >= 1

User ID of the account; omit for the account of the access token

Default:null
Input example
{ "automationId": 1, "revision": "string", "confirm": false, "deleteContactHistory": false, "accountId": null }

Output schema

accountIdintegerrequired
automationIdintegerrequired
deletedbooleanrequired
startedContactsintegerrequired
finishedContactsintegerrequired
activeContactsintegerrequired
Output example
{ "accountId": 0, "automationId": 0, "deleted": true, "startedContacts": 0, "finishedContacts": 0, "activeContacts": 0 }