Delete calendarPermission

Namespace: microsoft.graph

Delete calendarPermission.

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) Calendars.ReadWrite
Delegated (personal Microsoft account) Calendars.ReadWrite
Application Calendars.ReadWrite

HTTP request

Delete the specified permissions of a user's primary calendar:

DELETE /users/{id}/calendar/calendarPermissions/{id}

Delete the specified permissions of a group calendar:

DELETE /groups/{id}/calendar/calendarPermissions/{id}

Delete the specified permissions of the user calendar that contains the identified event:

DELETE /users/{id}/events/{id}/calendar/calendarPermissions/{id}

Request headers

Name Description
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.

Examples

Request

The following is an example of the request.

DELETE https://graph.microsoft.com/v1.0/users/{id}/calendar/calendarPermissions/{id}

Response

The following is an example of the response.

HTTP/1.1 204 No Content