---
ai:
  exclude: true
search:
  exclude: true
  tags:
    - DLQ
    - DELETE
seo:
  description: >-
    Permanently delete failed messages in the calling credential's… Reference
    for the DELETE /api/v2/dlq endpoint in the Anlyon API: earlier namespaces.
  noindex: true
sidebar:
  label: Permanently clear the DLQ
  badge: DELETE
title: Permanently clear the DLQ
type: openapi-operation
---
Permanently delete failed messages in the calling credential's environment, up to 1000 per call; `remaining` reports what is left. Another environment's failures are untouched. This cannot be undone.

`DELETE /api/v2/dlq`

**Responses**

- `200` — DLQ permanently cleared.
- `401` — Unauthorized - Invalid or missing API key
- `403` — Authenticated credential lacks the required scope or workspace access.
- `429` — Too Many Requests - Rate limit exceeded. A workspace's API requests are limited per minute and per UTC clock hour by plan; \`Retry-After\` says when to try again, and an hourly refusal names the limit and when the count resets. Successful responses carry the same limits in \`X-RateLimit-Limit\`, \`X-RateLimit-Remaining\`, \`X-RateLimit-Reset\` (the minute) and \`X-RateLimit-Limit-Hour\`, \`X-RateLimit-Remaining-Hour\`, \`X-RateLimit-Reset-Hour\` (the hour).

Response example, 200:

```json
{
  "success": true,
  "data": {
    "message": "string",
    "deletedCount": 0,
    "remaining": 0
  }
}
```

Response example, 401:

```json
{
  "success": false,
  "error": {
    "code": "AUTHENTICATION_ERROR",
    "message": "Invalid or missing API key"
  }
}
```

Response example, 429:

```json
{
  "success": false,
  "error": {
    "code": "RATE_LIMIT_EXCEEDED",
    "message": "Rate limit exceeded. Please try again later."
  }
}
```
