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

# Delete File

> Delete file contents and scrub sensitive metadata.
Minimal metadata is retained for audit and usage reporting per ZDR policy



## OpenAPI

````yaml https://api.chunkr.ai/docs/openapi.json delete /files/{file_id}
openapi: 3.1.0
info:
  title: Chunkr API
  description: >-
    API service for document layout analysis and chunking to convert document
    into RAG/LLM-ready data.
  contact:
    name: Chunkr
    url: https://chunkr.ai
    email: ishaan@lumina.sh
  license:
    name: ''
  version: 2.62.0
servers:
  - url: https://api.chunkr.ai
    description: Chunkr API
security: []
tags:
  - name: Files
    description: Endpoints for uploading and managing files
  - name: Health
    description: Endpoint for checking the health of the service.
  - name: Tasks
    description: Endpoints for uploading and managing tasks
  - name: Webhook
    description: Endpoints for managing webhooks
paths:
  /files/{file_id}:
    delete:
      tags:
        - Files
      summary: Delete File
      description: >-
        Delete file contents and scrub sensitive metadata.

        Minimal metadata is retained for audit and usage reporting per ZDR
        policy
      operationId: delete_file_route
      parameters:
        - name: file_id
          in: path
          description: ID of the file
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Deletion result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResponse'
        '401':
          description: Unauthorized
          content:
            text/plain:
              schema:
                type: string
        '404':
          description: File not found
          content:
            text/plain:
              schema:
                type: string
        '500':
          description: Server error
          content:
            text/plain:
              schema:
                type: string
      security:
        - api_key: []
components:
  schemas:
    DeleteResponse:
      type: object
      required:
        - deleted
      properties:
        deleted:
          type: boolean
          description: Whether the file was deleted
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: Authorization

````