Remove-SpbmStoragePolicy

This cmdlet deletes storage policies.

Syntax

-StoragePolicy  <SpbmStoragePolicy[]>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
StoragePolicy
SpbmStoragePolicy[] named
  • wildcards
  • pipeline
  • Specifies the storage policies to be deleted.
    optional
    Server
    VIServer[] named
  • wildcards
  • pipeline
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    Output

    Examples


    Example 1

    Remove-SpbmStoragePolicy -StoragePolicy $policy1, $policy2

    Deletes all storage policies represented by the $policy1 and $policy2 objects.

    Example 2

    Remove-SpbmStoragePolicy -StoragePolicy policytest*

    Deletes all storage policies whose name starts with "policytest".

    Related Commands

    Feedback

    Was this page helpful?