API reference

API reference · API

Delete a file

DELETE/v1/files/{id}API key

A batch already made from an input file keeps running; it copied its requests.

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe file id.

Answer 200

The file is gone.

Fields of the 200 answer
FieldTypeWhat it is
idstring
object"file"
deletedtrue

Errors

  • 404OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter