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
}
Delete a stored chat completion. Only Chat Completions that have been
created with the store
parameter set to true
can be deleted.
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
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the chat completion to delete.
The chat completion was deleted successfully.
The response is of type object
.
Was this page helpful?