Delete a Tenant

Deleting a tenant through the API does not delete the tenant's data. Instead, it marks the tenant as deleted. The tenant will no longer be able to access the database, but the data will still be available in the database.

Mark a tenant as deleted with a DELETE request.

Delete Tenant Request
DELETE- /workspaces/:workspaceSlug/databases/:databaseName/tenants/:tenantId
curl --location --request DELETE '<string>/databases/<string>/tenants/<string>' \
--header 'Authorization: Bearer <string>'

When a tenant is successfully marked as deleted, a response with status code 204 is returned.

Delete Tenant Response