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

  1. Get the pol-tag storage policy and store it in the $policy variable.
    $policy = Get-SpbmStoragePolicy -Name 'pol-tag'
  2. Disassociate all entities associated with the $policy storage policy.
    Set-SpbmEntityConfiguration (Get-SpbmEntityConfiguration -StoragePolicy $policy) -StoragePolicy $null
  3. Remove the $policy storage policy.
    Remove-SpbmStoragePolicy -StoragePolicy $policy