File
Delete File
Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but only delete them all together if you specify delete_chunks to be true. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
delete/api/file/{file_id}
Request
- Base URLhttps://api.trieve.ai
- URLhttps://api.trieve.ai/api/file/{file_id}
- AuthAPI key in header Authorization
Path parameters
file_idstring uuid required
The id of the file to delete
Query parameters
delete_chunksboolean required
Delete the chunks within the group
Headers
TR-Datasetstring uuid required
The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
Response
Confirmation that the file has been deleted
Changes
No recorded changes to this operation across all 50 revisions of this API.