Delete Tenant
Tenants
Delete Tenant
Permanently delete a tenant and all its data.
DELETE
Delete Tenant
When to use it
- Offboarding – a customer has churned and you need to remove their data
- Environment teardown – delete test or staging tenants
- Compliance – right-to-deletion requests under GDPR or similar
Endpoint
- Auth: Bearer token
- Idempotency: Re-sending for a deleted tenant returns
404 TENANT_NOT_FOUND - Async: Yes – returns
deletion_scheduled. Cleanup runs in the background.
Example
Query parameters
Response
Behavior notes
Cleanup is asynchronous. Deletion runs in the background and is typically complete within a few minutes. Treat deletion as eventually consistent.
Re-creation. Once deletion is scheduled, re-creating a tenant with the same
tenant_id may fail until cleanup completes. If you need to re-create immediately, use a different tenant_id.Related endpoints
- Before this: List data – confirm what’s stored before deleting
- Alternative: Delete knowledge · Delete memory – remove individual items instead of the whole tenant
Errors
Common codes:400 INVALID_PARAMETERS, 404 TENANT_NOT_FOUND. See Error Responses for the full list.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Unique identifier for the tenant/organization
Example:
"tenant_1234"