---
title: aiThreadDelete query | Wartiva GraphQL API
description: Deletes one of the caller's AI chat threads and its messages. To keep the thread but drop its messages, use aiThreadClear.
url: https://wartiva.com/api-docs/queries/ai-thread-delete.html
updated: 2026-10-07
---

AI · GraphQL query

# `aiThreadDelete` query

Deletes one of the caller's AI chat threads and its messages. To keep the thread but drop its messages, use [aiThreadClear](https://wartiva.com/api-docs/queries/ai-thread-clear.html).

## Response

Returns an [`AiDeletionPayload!`](https://wartiva.com/api-docs/types/ai-deletion-payload.html)

## Arguments

| Name | Description |
|---|---|
| `threadId` - [`AiThreadId!`](https://wartiva.com/api-docs/types/ai-thread-id.html) | The thread ID. |

## Example

### Query

```graphql
query aiThreadDelete($threadId: AiThreadId!) {
  aiThreadDelete(threadId: $threadId) {
    success
  }
}

```

### Variables

```json
{"threadId": AiThreadId}

```

### Response

```json
{"data": {"aiThreadDelete": {"success": true}}}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
