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

# Delete file

> Deletes the specified file.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/files/{file_id}
openapi: 3.1.0
info:
  title: Neosantara AI API
  description: OpenAI-compatible LLM Gateway
  version: 1.0.0
servers:
  - url: https://api.neosantara.xyz
    description: Neosantara Production Gateway
security:
  - bearerAuth: []
paths:
  /v1/files/{file_id}:
    delete:
      tags:
        - Files
      summary: Delete file
      description: Deletes the specified file.
      operationId: deleteV1FilesByFileId
      parameters:
        - schema:
            type: string
          in: path
          name: file_id
          required: true
      responses:
        '200':
          description: File deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  object:
                    type: string
                    const: file
                  deleted:
                    type: boolean
                required:
                  - id
                  - object
                  - deleted
        '404':
          description: File not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.