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

# Delete File

> Delete a file from an agent and remove it from the knowledge base



## OpenAPI

````yaml DELETE /agent/file/{file_id}
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /agent/file/{file_id}:
    delete:
      summary: Delete File
      description: Delete a file from an agent and remove it from the knowledge base
      parameters:
        - name: file_id
          in: path
          description: The ID of the file to delete
          required: true
          schema:
            type: string
      responses:
        '200':
          description: File deleted successfully
        '401':
          description: Unauthorized - Invalid or missing API key
        '403':
          description: Forbidden - Insufficient permissions (requires level 2)
        '404':
          description: File not found
      security:
        - CompanyApiKey: []
components:
  securitySchemes:
    CompanyApiKey:
      type: apiKey
      in: header
      name: Authorization
      description: Company API Key

````