SpyBara
Go Premium

cli/resources/conversations/methods/delete/index.md 2026-07-07 08:02 UTC to 2026-07-09 20:58 UTC

This page contains 1 addition and 1 deletion.

2026
Thu 9 20:58 Sun 12 06:58

Delete a conversation

$ openai conversations delete

delete /conversations/{conversation_id}

Delete a conversation

Parameters

  • --conversation-id: string

    The ID of the conversation to delete.

Returns

  • conversation_deleted_resource: object { id, deleted, object }

    • id: string

    • deleted: boolean

    • object: "conversation.deleted"

Example

openai conversations delete \
  --api-key 'My API Key' \
  --conversation-id conv_123

Response

{
  "id": "id",
  "deleted": true,
  "object": "conversation.deleted"
}