# delete_automation (/docs/mcp/tools/delete-automation)

{/* Generated by scripts/sync-mcp-tools.mjs from happierleads-api. Do not edit: change src/routes/mcp/toolDocs.json there, or add content/mcp-notes/delete_automation.mdx. */}

**Delete automation** · Deletes or overwrites data

Deletes an automation permanently, so it no longer acts on any lead. Records already pushed to CRMs or campaigns stay where they are. To stop it while keeping the setup, use toggle_automation with isActive false. Get automationId from list_automations. Confirm with the user before calling. Returns status 'Successful', or 404 'No automation found'.

| Connection | Account URL, team member URL or OAuth |
| --- | --- |

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `automationId` | `string` | Yes | Automation _id from list_automations. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "delete_automation",
  "title": "Delete automation",
  "annotations": {
    "title": "Delete automation",
    "readOnlyHint": false,
    "destructiveHint": true,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "automationId": {
        "type": "string",
        "description": "Automation _id from list_automations."
      }
    },
    "required": [
      "automationId"
    ]
  }
}
```
