SpyBara
Go Premium

resources/chat/subresources/completions/methods/delete/index.md 2026-07-07 08:02 UTC to 2026-07-09 20:58 UTC

63 added, 0 removed.

2026
Fri 31 21:03 Thu 30 23:58 Wed 29 15:02 Sat 25 05:59 Thu 23 18:00 Wed 22 20:02 Mon 20 20:00 Fri 17 17:00 Thu 16 20:57 Wed 15 02:58 Tue 14 06:58 Mon 13 15:59 Sun 12 06:58 Fri 10 23:02 Thu 9 20:58 Tue 7 08:02

Delete chat completion

delete /chat/completions/{completion_id}

Delete chat completion

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
}