🌍 Global Mirror — Visit original CN site →
Skip to content
Primary navigation

Delete assistant

Deprecated
DELETE/assistants/{assistant_id}

Delete an assistant.

Path ParametersExpand Collapse
assistant_id: string
ReturnsExpand Collapse
AssistantDeleted = object { id, deleted, object }
id: string
deleted: boolean
object: "assistant.deleted"

Delete assistant

curl https://api.openai.com/v1/assistants/asst_abc123 \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "OpenAI-Beta: assistants=v2" \
  -X DELETE
{
  "id": "asst_abc123",
  "object": "assistant.deleted",
  "deleted": true
}
Returns Examples
{
  "id": "asst_abc123",
  "object": "assistant.deleted",
  "deleted": true
}