Delete contact
Namespace: microsoft.graph
Delete a contact.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Contacts.ReadWrite |
Delegated (personal Microsoft account) | Contacts.ReadWrite |
Application | Contacts.ReadWrite |
HTTP request
A contact from a user's default contactFolder.
DELETE /me/contacts/{id}
DELETE /users/{id | userPrincipalName}/contacts/{id}
A contact from a user's top level contactFolder.
DELETE /me/contactFolders/{id}/contacts/{id}
DELETE /users/{id | userPrincipalName}/contactFolders/{id}/contacts/{id}
A contact contained in a child folder of a contactFolder. The example below shows one level of nesting, but a contact can be located in a child of a child and so on.
DELETE /me/contactFolders/{id}/childFolders/{id}/.../contacts/{id}
DELETE /users/{id | userPrincipalName}/contactFolders/{id}/childFolders/{id}/contacts/{id}
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. 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/v1.0/me/contacts/{id}
Response
Here is an example of the response. Note: The response object shown here might be shortened for readability.
HTTP/1.1 204 No Content
Feedback
Submit and view feedback for