Chat

Delete chat completion

Changed on

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}

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/chat/completions/{completion_id}
  • Auth
    HTTP bearer

Path parameters

completion_idstring required

The ID of the chat completion to delete.

Response

The chat completion was deleted successfully.

object'chat.completion.deleted' required

The type of object being deleted.

idstring required

The ID of the chat completion that was deleted.

deletedboolean required

Whether the chat completion was deleted.

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status