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

# Bulk Delete Contents

> Delete multiple contents at once.

Bulk deletion operation for removing multiple content items.
Returns details about successful and failed deletions.

Args:
    content_ids: List of content IDs to delete
    
Returns:
    Summary of deletion results
    
Example:
    POST /contents/bulk/delete
    Body:
    {
        "content_ids": ["con_123", "con_456", "con_789"]
    }
    
Response:
    {
        "deleted": 2,
        "failed": 1,
        "deleted_ids": ["con_123", "con_456"],
        "failed_ids": ["con_789"],
        "errors": {
            "con_789": "Content not found"
        }
    }



## OpenAPI

````yaml api-reference/openapi.json post /api/v1/contents/bulk/delete
openapi: 3.1.0
info:
  title: FastAPI app
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/contents/bulk/delete:
    post:
      tags:
        - Contents
      summary: Bulk Delete Contents
      description: |-
        Delete multiple contents at once.

        Bulk deletion operation for removing multiple content items.
        Returns details about successful and failed deletions.

        Args:
            content_ids: List of content IDs to delete
            
        Returns:
            Summary of deletion results
            
        Example:
            POST /contents/bulk/delete
            Body:
            {
                "content_ids": ["con_123", "con_456", "con_789"]
            }
            
        Response:
            {
                "deleted": 2,
                "failed": 1,
                "deleted_ids": ["con_123", "con_456"],
                "failed_ids": ["con_789"],
                "errors": {
                    "con_789": "Content not found"
                }
            }
      operationId: bulk_delete_contents_api_v1_contents_bulk_delete_post
      parameters:
        - name: X-Workspace-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: The workspace ID
            title: X-Workspace-Id
          description: The workspace ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
              description: List of content IDs to delete
              title: Content Ids
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - DualAuthScheme: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    DualAuthScheme:
      type: http
      scheme: bearer

````