# Delete an automation and its run history.

> Crews it launched keep running and keep saying who launched them.
> https://koi.dog/docs/api/automations/delete-automation/

`DELETE /api/v1/automations/{id}` · Scope: `config`

When an API key calls it, the timeline records who did what and the outcome. No query parameters, and no body.

## Path parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The automation's id. |

## Response.

204 No Content: the answer has no body.

## Request.

```sh
curl -X DELETE "https://app.koi.dog/api/v1/automations/$ID" \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch(`https://app.koi.dog/api/v1/automations/${process.env.ID}`, {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(res.status);
```

```python
import os

import requests

r = requests.delete(
    f"https://app.koi.dog/api/v1/automations/{os.environ['ID']}",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.status_code)
```
