> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lacy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete automation

> Permanently delete an automation

This endpoint permanently deletes an automation. This cannot be undone — everything the automation did stops, and its definition is unrecoverable. If any of your assistants were attached to it, that attachment is cleared automatically so nothing keeps firing a deleted automation. If you are deleting an automation to replace it and still want any of its current behavior, read it first with [Get automation](https://docs.lacy.ai/api-reference/automations/get-automation.md) and carry those steps into the replacement.

### Path Parameters

**id** `string` *required*

The ID of the automation (from [List automations](https://docs.lacy.ai/api-reference/automations/list-automations.md))

### Response

**message** `string`

`Automation deleted successfully`

A missing automation — or one that does not belong to your account — returns a `404` with `{"message": "Automation not found"}`.

```json 200 Response theme={null}
{
  "message": "Automation deleted successfully"
}
```

```json 404 Response theme={null}
{
  "message": "Automation not found"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.