در حال بارگذاری…
Deletes a specific AI thread.
| Permission | Description |
|---|---|
ai_threads.delete | Delete your own threads |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| thread-id | int | Yes | ID of the thread to delete | 123 |
DELETE /api/v1/ai/threads/123
Authorization: Bearer {token}
Despite the 204, this endpoint does return a JSON body — a localized confirmation message.
HTTP defines 204 as bodyless, so some clients and proxies discard it; treat the body as informational,
not something to depend on.
{
"message": "AI thread deleted successfully."
}
Localized from messages.ai.threads.deleted_successfully (fa: “موضوع AI با موفقیت حذف شد.”).
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not found error |