files

Delete a file

Deletes a file. The file cannot be deleted if it is still referenced by any vector stores.

delete/api/v1/files/{file_id}

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/files/{file_id}
  • Auth: HTTP bearer

Path parameters

file_idstring uuid required

File ID

Response

File deleted

deletedboolean required

Whether the file was deleted

idstring required

File ID that was deleted

objectstring required

Object type (always "file")

Changes

No recorded changes to this operation across all 1 revision of this API.