---
title: "Delete an error log entry"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › ErrorLogs

`DELETE /api/workspaces/{workspaceId}/error-logs/{id}`

## Authentication

- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Path parameters

- `workspaceId` (`delete/api/workspaces/workspaceId/error-logs/id.path.workspaceId`; string, required)
- `id` (`delete/api/workspaces/workspaceId/error-logs/id.path.id`; string, required)

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.channelautomation.com/api/workspaces/<workspaceId>/error-logs/<id>' \
  --header 'X-API-Key: <X-API-Key>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/error-logs/<id>';
const options = {method: 'DELETE', headers: {'X-API-Key': '<X-API-Key>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/workspaces/<workspaceId>/error-logs/<id>"

headers = {"X-API-Key": "<X-API-Key>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 200

Error deleted

### 500

Internal server error

#### Example

```json
{
  "error": "Internal server error",
  "details": "string",
  "success": false
}
```

- `error` (`delete/api/workspaces/workspaceId/error-logs/id.response.500.error`; string, optional)
  - example `"Internal server error"`
- `details` (`delete/api/workspaces/workspaceId/error-logs/id.response.500.details`; string, optional)
- `success` (`delete/api/workspaces/workspaceId/error-logs/id.response.500.success`; boolean, optional)
  - example `false`


Source: https://developer.channelautomations.com/api/delete-api-workspaces-workspace-id-error-logs-id/index.md
