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

# Delete file

> Permanently delete a file



## OpenAPI

````yaml DELETE /files/{id}
openapi: 3.1.0
info:
  title: Null Drop API
  description: API do zarządzania plikami (upload, pobieranie, listowanie, usuwanie)
  version: 1.0.0
servers:
  - url: https://nulldrop.xyz/api/v1
security:
  - bearerAuth: []
paths:
  /files/{id}:
    delete:
      summary: Delete a file
      description: Permanently delete a file
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: File deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResponse'
        '404':
          description: File not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    DeleteResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            message:
              type: string
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````