Delete domain

Deletes a domain from a tenant.

Important: - Deleted domains are not recoverable.
- Attempts to delete will fail if there are any resources or objects still dependent on the domain. You can find all dependent resources by using the List domainNameReferences API.

Prerequisites

One of the following scopes is required to execute this API: Domain.ReadWrite.All or Directory.AccessAsUser.All

HTTP request

DELETE /domains/{id}

For {id}, specify the domain with its fully qualified domain name.

Request headers

Name Description
Authorization Bearer {token}. Required.
Content-Type application/json

Request body

Do not supply a request body for this method.

Response

If successful, this method returns 204, No Content response code. It does not return a response body.

Example

Request
DELETE https://graph.microsoft.com/V1.0/domains/contoso.com
Response

Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 204 No Content