SpyBara
Go Premium

resources/chat/subresources/completions/methods/delete/index.md 2026-05-02 05:57 UTC to 2026-05-05 23:00 UTC

64 added, 0 removed.

2026
Wed 27 06:42 Fri 22 06:33 Wed 20 06:35 Tue 19 06:34 Mon 18 22:01 Mon 11 18:00 Thu 7 21:57 Tue 5 23:00 Sat 2 05:57
Data Information:
  • After 2026-05-05 06:03 UTC, this monitor no longer uses markdownified HTML/MDX. Comparisons across that boundary can therefore show more extensive diffs.

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

  • 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 https://api.openai.com/v1/chat/completions/$COMPLETION_ID \
    -X DELETE \
    -H "Authorization: Bearer $OPENAI_API_KEY"

Response

{
  "id": "id",
  "deleted": true,
  "object": "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

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