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

# Delete logs

## Authentication

* API key: `Authorization: Bearer <API key>`

Request body:

* is\_deleting\_all\_logs (boolean, required if no filters; default false)
* filters (object, required unless `is_deleting_all_logs` is true)

Request (filters) example:

```json theme={"system"}
{
  "filters": { "status_code": { "operator": "eq", "value": 500 } }
}
```

Request (delete all) example:

```json theme={"system"}
{ "is_deleting_all_logs": true }
```

Response (200 OK):

```json theme={"system"}
{ "message": "Logs are being removed from dataset in the background" }
```

Errors:

* 400 Bad Request — neither `is_deleting_all_logs` nor `filters` provided
* 404 Not Found — dataset not found or not in your organization
