Skip to content
Get started

Delete a file

$ deeptable files delete
DELETE/v1/files/{file_id}

Delete a file. This cannot be undone.

ParametersExpand Collapse
--file-id: string

The unique identifier of the file.

ReturnsExpand Collapse
FileDeleteResponse: object { id, deleted, object }

Response from deleting a file.

Following the OpenAI API convention for delete responses.

id: string

The unique identifier of the deleted file.

deleted: true

Whether the file was successfully deleted.

true
object: "file"

The object type, which is always 'file'.

"file"

Delete a file

deeptable files delete \
  --api-key 'My API Key' \
  --file-id file_01kfxgjd94fn9stqm414vjb0s8
{
  "id": "file_01kfxgjd94fn9stqm414vjb0s8",
  "deleted": true,
  "object": "file"
}
Returns Examples
{
  "id": "file_01kfxgjd94fn9stqm414vjb0s8",
  "deleted": true,
  "object": "file"
}