OhMyGPT
Files

Delete file

DELETE
/v1/files/{file_id}

Delete an uploaded file. Batches already created from it are not affected. Batch output and error files cannot be deleted and answer 400.

Authorization

ApiKeyAuth
headerAuthorization<token>

Path Parameters

file_id*string

The id of a file.

Response Body

Deleted

application/json
  1. response
deleted*true
Value intrue
id*string
object*"file"
Value in"file"
Example Request
curl -X DELETE 'https://api.ohmygpt.com/v1/files/string'
Example Response
{  "deleted": true,  "id": "string",  "object": "file"}

Was this page helpful?

Still stuck? Live chat · [email protected] · Telegram group