# tools.ozone.queue.deleteQueue

> Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.deleteQueue)
- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.deleteQueue/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.deleteQueue/examples)

## Definitions

### `tools.ozone.queue.deleteQueue`

**Type**: `procedure`

Delete a moderation queue. Optionally migrate reports to another queue.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `migrateToQueueId` | `integer` | No | Optional: migrate all reports to this queue. If not specified, reports will be set to unassigned (-1). |
| `queueId` | `integer` | Yes | ID of the queue to delete |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `deleted` | `boolean` | Yes |  |
| `reportsMigrated` | `integer` | No | Number of reports that were migrated (if migration occurred) |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Delete a moderation queue. Optionally migrate reports to another queue.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "migrateToQueueId": {
              "description": "Optional: migrate all reports to this queue. If not specified, reports will be set to unassigned (-1).",
              "type": "integer"
            },
            "queueId": {
              "description": "ID of the queue to delete",
              "type": "integer"
            }
          },
          "required": [
            "queueId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "deleted": {
              "type": "boolean"
            },
            "reportsMigrated": {
              "description": "Number of reports that were migrated (if migration occurred)",
              "type": "integer"
            }
          },
          "required": [
            "deleted"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.queue.deleteQueue",
  "lexicon": 1
}
```
