Documentation Index
Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Using TypeScript? Check out our GraphQL SDK for a fully typed client.
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.
A tenant is identified by either its Plain tenantId or its externalId.
This operation requires the following permissions:
mutation deleteTenant($input: DeleteTenantInput!) {
deleteTenant(input: $input) {
tenant {
id
name
}
error {
message
type
code
fields {
field
message
type
}
}
}
}
{
"input": {
"tenantIdentifier": {
"externalId": "team_123"
}
}
}