Delete a user

Delete user.

Prerequisites

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

HTTP request

DELETE /users/{id | userPrincipalName}

Request headers

Header Value
Authorization Bearer . Required.

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 anything in the response body.

Example

Request

Here is an example of the request.

DELETE https://graph.microsoft.com/beta/users/ba9a3254-9f18-4209-aeb3-9e42a35b5be4 
Response

Here is an example of the response.

HTTP/1.1 204 No Content