Delete baseSitePage
Namespace: microsoft.graph
Delete a baseSitePage from the site pages list in a site.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ✅ | ✅ | ✅ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Note: To delete an item, the user must have granted the application write access to the item to be deleted.
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | Sites.ReadWrite.All | Not available. |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | Sites.ReadWrite.All | Not available. |
HTTP request
DELETE /sites/{site-id}/pages/{page-id}
Request headers
Name | Value | Description |
---|---|---|
Authorization | Bearer {token}. | Required |
if-match | etag | If this request header is included and the eTag provided doesn't match the current tag on the item, a 412 Precondition Failed response is returned and the item won't be deleted. |
Request body
Don't supply a request body with this method.
Response
If successful, this method returns a 204 No Content
. It doesn't return anything in the response body.
Example
Request
The following example shows a request.
DELETE /sites/7f50f45e-714a-4264-9c59-3bf43ea4db8f/pages/df69e386-6c58-4df2-afc0-ab6327d5b202
Response
The following example shows the response.
HTTP/1.1 204 No Content
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per