Delete page

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 a OneNote page.

Prerequisites

One of the following scopes is required to execute this API:
Notes.ReadWrite, or Notes.ReadWrite.All

HTTP request

DELETE /me/onenote/pages/{id}
DELETE /users/{id | userPrincipalName}/onenote/pages/{id}
DELETE /groups/{id}/onenote/pages/{id}
DELETE /sites/{id}/onenote/pages/{id}

Request headers

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

Response

If successful, this method returns a 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/me/onenote/pages/{id}
Response

Here is an example of the response.

HTTP/1.1 204 No Content