DELETE
/vector_stores/{vector_store_id}/files/{file_id}Remove a file from a vector store
Deletes a file attachment from a vector store without deleting the underlying file. Use the file deletion operation separately if you also need to delete the file itself.
vector_store_idstringrequired
The unique identifier of the vector store that contains the file.
file_idstringrequired
The unique identifier of the file attachment to remove.
200Returns the deleted attachment's identifier and a confirmation that it was removed from the vector store.
idstringrequired
deletedbooleanrequired
objectstringrequired
400Returned when the vector store has expired.
errorobjectrequired
404Returned when the vector store or file is not found.
errorobjectrequired
409Returned when the vector store is temporarily unavailable for the change or was modified concurrently.
errorobjectrequired
429Returned when the request exceeds a rate limit.
errorobjectrequired
500Returned when the vector store file could not be deleted.
errorobjectrequired
Error handling
A 400 is returned when the vector store has expired. A 404 is returned when the vector store or file is not found; a 409 indicates the store is unavailable for the change or was modified concurrently; a 429 indicates a rate limit; and a 500 means the attachment could not be deleted. The vector_store_id path parameter identifies the store, and the file_id path parameter identifies the attachment to remove.