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

# Delete Items

> Permanently delete multiple items from all storage systems.

<Card title="Error Reference: Content Controls" icon="triangle-exclamation" href="/api-reference/general/errors#content-controls-data-engine">
  Common errors: missing or invalid item IDs (400), unauthorized delete (403), validation errors (422), delete failures (500).
</Card>


## OpenAPI

````yaml delete /engine/v2/items
openapi: 3.1.0
info:
  title: AI API
  description: |-
    Optimized for high-speed inference and scalability by Gloo AI

    [Swagger UI](./docs) | [ReDoc UI](./redoc)
  version: 1.0.0
servers:
  - url: https://platform.ai.gloo.com
security:
  - bearerAuth: []
tags:
  - name: Content Controls
  - name: Data Engine
  - name: Ingestion & Enrichment
  - name: answers
  - name: chat
  - name: completions
  - name: content
  - name: core
  - name: data
  - name: get-models
  - name: ingestion
  - name: sotc
paths:
  /engine/v2/items:
    delete:
      tags:
        - Data Engine
        - Content Controls
      summary: Delete Items
      description: Permanently delete multiple items from all storage systems.
      operationId: delete_items_engine_v2_items_delete
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteItemsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteItemsResponse'
        '400':
          description: Bad Request - Missing or invalid item IDs
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
              examples:
                missing_item_ids:
                  summary: No item IDs provided
                  value:
                    detail:
                      code: Invalid request
                      message: At least one item_id is required
                invalid_item_ids:
                  summary: Invalid item IDs
                  value:
                    detail:
                      code: Invalid item IDs
                      message: All item IDs must be valid UUID format
                      invalid_ids:
                        - not-a-uuid
        '403':
          description: Forbidden - One or more items cannot be deleted by this caller
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
              example:
                detail:
                  code: Unauthorized access
                  message: You don't have permission to delete these items
                  unauthorized_items:
                    - c68c9303-9851-476e-96af-aa5bdd385811
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error - Delete operation failed
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
              example:
                detail:
                  code: Internal server error
                  message: An error occurred while deleting items
      security:
        - HTTPBearer: []
components:
  schemas:
    DeleteItemsRequest:
      properties:
        item_ids:
          items:
            type: string
            format: uuid
          type: array
          minItems: 1
          maxItems: 1000
          title: Item Ids
      type: object
      required:
        - item_ids
      title: DeleteItemsRequest
    DeleteItemsResponse:
      properties:
        success:
          type: boolean
          title: Success
        mode:
          type: string
          title: Mode
        total_requested:
          type: integer
          title: Total Requested
        total_deleted:
          type: integer
          title: Total Deleted
        total_failed:
          type: integer
          title: Total Failed
        results:
          items:
            $ref: '#/components/schemas/DeleteItemResult'
          type: array
          title: Results
        message:
          type: string
          title: Message
      type: object
      required:
        - success
        - mode
        - total_requested
        - total_deleted
        - total_failed
        - results
        - message
      title: DeleteItemsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DeleteItemResult:
      properties:
        item_id:
          type: string
          format: uuid
          title: Item Id
        success:
          type: boolean
          title: Success
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        deleted_from:
          $ref: '#/components/schemas/DeletedFrom'
      type: object
      required:
        - item_id
        - success
      title: DeleteItemResult
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    DeletedFrom:
      properties:
        weaviate:
          type: boolean
          title: Weaviate
        s3:
          type: boolean
          title: S3
        chunk_enrichments:
          type: boolean
          title: Chunk Enrichments
        files:
          type: boolean
          title: Files
        database:
          type: boolean
          title: Database
      type: object
      required:
        - weaviate
        - s3
        - chunk_enrichments
        - files
        - database
      title: DeletedFrom
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form Bearer `<token>`, where
        `<token>` is your [auth token](/studio/manage-api-credentials).
    HTTPBearer:
      type: http
      scheme: bearer

````