DELETE
/
chat
/
completions
/
{completion_id}
Delete chat completion
curl --request DELETE \
  --url https://api.openai.com/v1/chat/completions/{completion_id} \
  --header 'Authorization: Bearer <token>'
{
  "object": "chat.completion.deleted",
  "id": "<string>",
  "deleted": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

completion_id
string
required

The ID of the chat completion to delete.

Response

200 - application/json

The chat completion was deleted successfully.

object
enum<string>
required

The type of object being deleted.

Available options:
chat.completion.deleted
id
string
required

The ID of the chat completion that was deleted.

deleted
boolean
required

Whether the chat completion was deleted.