---
title: aiThreadDeleteAll query | Wartiva GraphQL API
description: Deletes all of the caller's AI chat threads in an organization. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/queries/ai-thread-delete-all.html
updated: 2026-10-07
---

AI · GraphQL query

# `aiThreadDeleteAll` query

Deletes all of the caller's AI chat threads in an organization.

## Response

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

## Arguments

| Name | Description |
|---|---|
| `orgId` - [`OrganizationId!`](https://wartiva.com/api-docs/types/organization-id.html) | The Organization identifier. |

## Example

### Query

```graphql
query aiThreadDeleteAll($orgId: OrganizationId!) {
  aiThreadDeleteAll(orgId: $orgId) {
    success
  }
}

```

### Variables

```json
{"orgId": "615f3b3b28284380e28a7342"}

```

### Response

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

```

---

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