| title | Delete protectionPolicyBase |
|---|---|
| description | Delete a protectionPolicyBase object. |
| author | tushar20 |
| ms.reviewer | manikantsinghms |
| ms.localizationpriority | medium |
| ms.subservice | m365-backup-storage |
| doc_type | apiPageType |
| ms.date | 08/26/2024 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Delete a protectionPolicyBase object.
A protection policy can be deleted only after it was deactivated. When you delete a policy, all associated protection units are removed, and backup protection stops for the resources previously covered by the policy. Existing backup data is retained according to the retention policy before it's offboarded. You can restore data using previous restore points even after deletion.
[!INCLUDE national-cloud-support]
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.
[!INCLUDE permissions-table]
DELETE /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 204 No Content response code.
For a list of possible error responses, see Backup Storage API error responses.
The following example shows a request.
DELETE https://graph.microsoft.com/beta/solutions/backupRestore/protectionPolicies/61633878-8321-4950-bfaf-ed285bdd1461
Authorization: Bearer <Access-Token>[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
HTTP/1.1 204 No Content