{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-batch-delete-document-response-schema.json",
  "title": "BatchDeleteDocumentResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-documents-api-openapi.yml#/components/schemas/BatchDeleteDocumentResponse",
  "type": "object",
  "properties": {
    "failedDocuments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FailedDocument"
      },
      "description": "A list of documents that couldn't be removed from the Amazon Q Business index. Each entry contains an error message that indicates why the document couldn't be removed from the index."
    }
  },
  "$defs": {
    "ErrorDetail": {
      "type": "object",
      "properties": {
        "errorMessage": {
          "type": "string",
          "description": "The message explaining the Amazon Q Business request error."
        },
        "errorCode": {
          "type": "string",
          "enum": [
            "InternalError",
            "InvalidRequest",
            "ResourceInactive",
            "ResourceNotFound"
          ],
          "description": "The code associated with the Amazon Q Business request error."
        }
      }
    },
    "FailedDocument": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The identifier of the document that couldn't be removed from the Amazon Q Business index."
        },
        "error": {
          "$ref": "#/$defs/ErrorDetail"
        },
        "dataSourceId": {
          "type": "string",
          "description": "The identifier of the Amazon Q Business data source connector that contains the failed document."
        }
      }
    }
  }
}