{
  "$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
}
