Delete a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` can be deleted.

DELETE /chat/completions/{completion_id}

Path parameters

  • completion_id string Required

    The ID of the chat completion to delete.

Responses

  • 200 application/json

    The chat completion was deleted successfully.

    Hide response attributes Show response attributes object
    • object string Required

      The type of object being deleted.

      Value is chat.completion.deleted.

    • id string Required

      The ID of the chat completion that was deleted.

    • deleted boolean Required

      Whether the chat completion was deleted.

DELETE /chat/completions/{completion_id}
curl \
 --request DELETE 'https://api.openai.com/v1/chat/completions/{completion_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "object": "chat.completion.deleted",
  "id": "string",
  "deleted": true
}