DELETE/files/{file_id}

Delete a file

Deletes a file and removes it from all vector stores. Use file_id to identify the file to remove.

1 parameter
file_idstringrequired
The unique identifier of the file to delete.

3 status codes
200Returns the file ID, the object type, and a `deleted` flag confirming the deletion.
idstringrequired
objectstringrequired
Allowed:file
deletedbooleanrequired
404Returned when the file is not found.
errorobjectrequired
429Returned when too many file requests are made; reduce the request rate and try again later.
errorobjectrequired

Error handling

A 404 is returned when the file identified by the file_id path parameter is not found. A 429 is returned when too many file requests are made.