Delete directoryObject

Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported.

Delete directoryObject.


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

NOTE: Users, groups, and contacts are types of directory object. As a result,if you need to delete users, the following scope can and should be used: User.ReadWrite.All

HTTP request

DELETE /directoryObjects/{id}

Request headers

Name Type Description
Authorization string Bearer {token}. Required.

Request body

Do not supply a request body for this method.


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



Here is an example of the request.


Here is an example of the response.

HTTP/1.1 204 No Content