You can disassociate all entities associated with a storage policy and remove the policy completely.
Prerequisites
- Verify that you are connected to a vCenter Server system.
- Verify that you have Profile-driven storage update privileges.
- Verify that a storage policy named pol-tag exists in the vCenter Server environment.
Procedure
- Get the pol-tag storage policy and store it in the $policy variable.
$policy = Get-SpbmStoragePolicy -Name 'pol-tag'
- Disassociate all entities associated with the $policy storage policy.
Set-SpbmEntityConfiguration (Get-SpbmEntityConfiguration -StoragePolicy $policy) -StoragePolicy $null
- Remove the $policy storage policy.
Remove-SpbmStoragePolicy -StoragePolicy $policy