Skip to content
Get started

Delete a file

DELETE/v1/files/{file_id}

Delete a file. This cannot be undone.

Path ParametersExpand Collapse
file_id: string

The unique identifier of the file.

ReturnsExpand Collapse
id: string

The unique identifier of the deleted file.

deleted: true

Whether the file was successfully deleted.

object: "file"

The object type, which is always 'file'.

Delete a file

curl https://api.deeptable.com/v1/files/$FILE_ID \
    -X DELETE \
    -H "Authorization: Bearer $DEEPTABLE_API_KEY"
{
  "id": "file_01kfxgjd94fn9stqm414vjb0s8",
  "deleted": true,
  "object": "file"
}
Returns Examples
{
  "id": "file_01kfxgjd94fn9stqm414vjb0s8",
  "deleted": true,
  "object": "file"
}