> ## Documentation Index
> Fetch the complete documentation index at: https://plain-docs-orca-916-agent-docs-restructure.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a tenant

> Delete a tenant, unlinking its customers and removing its tenant fields.

Deleting a tenant unlinks it from all of its customers and removes any associated tenant fields. Threads previously linked to the tenant retain a reference to the deletion record but are no longer routed via it.

<Snippet file="graphql/sdk-note.mdx" />

A tenant is identified by either its Plain `tenantId` or its `externalId`.

This operation requires the following permissions:

* `tenant:delete`

<Snippet file="graphql/delete-tenant.mdx" />
