batch

Delete a file

Delete a file and its content immediately. Deleting an input file does not stop a batch that already read it; deleting an output file makes its results unrecoverable.

delete/v1/files/{file_id}

Path parameters

file_idstring required

The file_ prefixed id of the file to remove.

Example:file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f

Identifies the file to delete.

Response

The file was deleted.

idstring required

Id of the file that was deleted.

objectstring required

Always file, even on a deletion receipt.

deletedboolean required

Always true on success.

Example response

{
  "id": "file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f",
  "object": "file",
  "deleted": true
}

Changes

Changed in 1 of the 3 revisions of this API.1