Skip to main content
SnapCenter 6.0 cmdlets

Remove-SmPolicy

Contributors

Removes one or more policies from SnapCenter.

Syntax

Remove-SmPolicy [-PolicyNames]  <String>

Detailed Description

Removes one or more policies from SnapCenter. In order to delete polices from SnapCenter, you must have already detached them from any datasets with which they are associated.

Parameters

Name Description Required? Pipeline Input Default Value

PolicyNames

Identifies the policy you want to delete. You can provide an individual policy name or a comma-separated list.

true

true (ByPropertyName)

Examples

Example 1: Deleting a policy from SnapCenter

 Remove-SmPolicy -PolicyNames ‘SQL Full Backup’

This example syntax removes a specified policy.

Remove-SmPolicy
Are you sure you want to remove the dataset policy. Its association with dataset also gets removed.?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Example 1: Deleting a policy from SnapCenter without confirmation dialogue

 Remove-SmPolicy -PolicyNames ‘SQL Full Backup’ -Confirm:$false

This example syntax removes a specified policy.