Skip to main content
DELETE
/
automations
/
:id
curl \
-H "Authorization: Bearer API_KEY" \
-X DELETE https://api.ayrshare.com/api/automations/auto_9xKp2Lm4nQ
{
  "status": "success",
  "id": "auto_9xKp2Lm4nQ"
}

Documentation Index

Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Beta. See the Automations Overview for the full feature description.
Soft-deletes the automation. The master row is flagged deleted: true, active: false; no new dispatches occur from this point on. Existing triggers, actions, and activity rows are not cascaded. The activity history remains queryable via GET /automations/:id/activity for as long as the rows exist in Firestore (retention is indefinite for trace and analytics). Soft-deleted automations no longer count against your active automation cap. They cannot be restored via the API; create a new automation instead.

Header Parameters

Path Parameters

id
string
required
The automation ID returned from POST /automations.
curl \
-H "Authorization: Bearer API_KEY" \
-X DELETE https://api.ayrshare.com/api/automations/auto_9xKp2Lm4nQ
{
  "status": "success",
  "id": "auto_9xKp2Lm4nQ"
}