SpyBara
Go Premium

resources/chat/subresources/completions/methods/delete/index.md 2026-11-18 22:59 UTC to 2026-11-19 22:59 UTC

This page contains 0 additions and 18 deletions.

2026
Thu 19 22:59

For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.

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

    The ID of the chat completion to delete.

Returns

  • ChatCompletionDeleted object { id, deleted, object }

    • id: string

      The ID of the chat completion that was deleted.

    • deleted: boolean

      Whether the chat completion was deleted.

    • object: "chat.completion.deleted"

      The type of object being deleted.

      • "chat.completion.deleted"

Example

curl -X DELETE https://api.openai.com/v1/chat/completions/chat_abc123 \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json"

Response example

{
  "object": "chat.completion.deleted",
  "id": "chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2",
  "deleted": true
}