Delete chat completion
DELETE/chat/completions/{completion_id}
Delete a stored chat completion. Only Chat Completions that have been
created with the store parameter set to true can be deleted.
Path Parameters
completion_id: string
Returns
Delete chat completion
curl -X DELETE https://api.openai.com/v1/chat/completions/chat_abc123 \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json"
{
"object": "chat.completion.deleted",
"id": "chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2",
"deleted": true
}
Returns Examples
{
"object": "chat.completion.deleted",
"id": "chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2",
"deleted": true
}