NAME

Remove-HPOVStoragePool

SYNOPSIS

Delete storage pool(s) from appliance configuration.

SYNTAX

Remove-HPOVStoragePool [-storagePool] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]

Remove-HPOVStoragePool [-storagePool] <Object> [-storageSystem] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Delete one or more storage pools from the appliance configuration.

PARAMETERS

-storagePool <Object>

Aliases [-name, -uri]

The network object(s), name(s) or URI(s) to be deleted.

Aliases -name, -uri
Required? true
Position? 1
Default value <none>
Accept pipeline input? true (ByValue)
Accept wildcard characters?    false
-storageSystem <Object>

Aliases [-storage]

Optional. Provide the Storage System Name, URI or Object when the StoragePool name is not unique.

Aliases None
Required? true
Position? 2
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-WhatIf [<SwitchParameter>]
Aliases None
Required? false
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-Confirm [<SwitchParameter>]
Aliases None
Required? false
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

System.String

Single Storage Pool resource name.

System.Management.Automation.PSCustomObject

Single Storage Pool resource, typically retrieved with Get-HPOVStoragePool.

OUTPUTS

System.Management.Automation.PSCustomObject

Removal task.

RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 -------------------------- 

PS C:\> $task = Remove-HPOVStoragePool -storagePool "yellow"
PS C:\> Wait-HPOVTaskComplete $task.uri

Remove the storage pool specifed by name. Wait for remove to complete.
-------------------------- EXAMPLE 2 -------------------------- 

PS C:\> $pool = Get-HPOVStoragePool -name "yellow"
PS C:\> REMOVE-HPOVSTORAGEPOOL -storagePool $pool -confirm:$false

Remove the network specifed by $pool, and do not prompt for confirmation.
-------------------------- EXAMPLE 3 -------------------------- 

PS C:\> Get-HPOVStoragePool | Remove-HPOVStoragePool

Search for all storage pools and remove them from appliance.

Last edited Aug 19, 2014 at 10:00 PM by chrislynchhp, version 2