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

# Delete User File

> Delete a user file belonging to the current user.

This will also remove any project associations for the file.



## OpenAPI

````yaml DELETE /user/projects/file/{file_id}
openapi: 3.1.0
info:
  title: Onyx API
  description: Onyx API for AI-powered enterprise search and chat
  version: Development
servers:
  - url: https://cloud.onyx.app/api
security: []
paths:
  /user/projects/file/{file_id}:
    delete:
      tags:
        - public
      summary: Delete User File
      description: |-
        Delete a user file belonging to the current user.

        This will also remove any project associations for the file.
      operationId: delete_user_file
      parameters:
        - name: file_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: File Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserFileDeleteResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    UserFileDeleteResult:
      properties:
        has_associations:
          type: boolean
          title: Has Associations
        project_names:
          items:
            type: string
          type: array
          title: Project Names
          default: []
        assistant_names:
          items:
            type: string
          type: array
          title: Assistant Names
          default: []
      type: object
      required:
        - has_associations
      title: UserFileDeleteResult
    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:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization header with Bearer token

````