Delete an Entra ID tenant
DELETE/api/v1/AzureAdTenant/Delete/:tenantId
Deletes the Entra ID tenant configuration with the given ID, along with the resource and website that represent it, and returns the ID of the deleted tenant. Use it to stop managing a tenant.
Permission required: Administrator or application role.
Caution: The tenant is deleted immediately.
Request
Responses
- 200
- 400
- 404
The tenant was deleted. The body is the tenant ID.
The tenant could not be deleted. The body is an error message as a JSON string.
The tenant was not found, or it has no resource record.