---
title: "Delete an automation"
description: "Deletes the automation for good: it can't be undone, and it is gone from every list and read (its run history ages out as usual). `DELETE /api/v1/automations/{id}`"
url: https://www.unitpost.com/docs/automations/delete-automations-id
section: "Automations API reference"
updated: 2026-12-01
---
# Delete an automation

`DELETE /api/v1/automations/{id}`

Deletes the automation for good: it can't be undone, and it is gone from every list and read (its run history ages out as usual). To switch one off and keep it restorable, [archive](https://www.unitpost.com/docs/automations/post-automations-id-archive) it instead. An archived automation is deleted with whatever it still has going; any other is refused while runs are in progress: archive it (which cancels them) or cancel them first (`POST /automations/{id}/runs/cancel`). Pausing holds runs, it doesn't finish them. Requires the `automations:write` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 204 | Deleted. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 404 | Automation not found. |
| 409 | Runs are still in progress: archive it or cancel them first. |

## Example request

```bash
curl -X DELETE 'https://www.unitpost.com/api/v1/automations/atm_123' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/automations/delete-automations-id
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
