Skip to content

Remove HPOVStoragePool

Chris Lynch edited this page Jun 25, 2016 · 41 revisions

HP OneView 200 Library

NAME

Remove-HPOVStoragePool

SYNOPSIS

Delete storage pool resource(s).

SYNTAX

 Remove-HPOVStoragePool [-StoragePool] <Object> [[-Force] <SwitchParameter>] [[-ApplianceConnection] <Object>] [[-WhatIf] <SwitchParameter>] [[-Confirm] <SwitchParameter>]  [<CommonParameters>]
 Remove-HPOVStoragePool [-StoragePool] <Object> [-StorageSystem] <Object> [[-Force] <SwitchParameter>] [[-WhatIf] <SwitchParameter>] [[-Confirm] <SwitchParameter>]  [<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 None
Required? true
Position? 1
Default value <none>
Accept pipeline input? true (ByValue)
Accept wildcard characters?    false

-StorageSystem <Object>

Aliases [-storage] 

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

-Force [<SwitchParameter>]

If specified, the Storage Pool resource will forceablly removed despite any problems with network connectivity or errors with the resource. 
Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false

-ApplianceConnection [<Object>]

Aliases [-Appliance] 

Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectSessions} | ? Default

Aliases None
Required? false
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
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.

_**HPOneView.Storage.Pool [System.Management.Automation.PSCustomObject]**_

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

OUTPUTS

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]

Removal async task.

_**System.Collections.ArrayList **_

Multiple removal async task.

#### RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------
        
PS C:\> $task = Remove-HPOVStoragePool -storagePool "yellow" | Wait-HPOVTaskComplete $task

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.


HP OneView 120 Library

NAME

Remove-HPOVStoragePool

SYNOPSIS

Delete storage pool resource(s).

SYNTAX

 Remove-HPOVStoragePool [-storagePool] <Object> [[-WhatIf] <SwitchParameter>] [[-Confirm] <SwitchParameter>]  [<CommonParameters>]
 Remove-HPOVStoragePool [-storagePool] <Object> [-storageSystem] <Object> [[-WhatIf] <SwitchParameter>] [[-Confirm] <SwitchParameter>]  [<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 None
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.


HP OneView 110 Library

NAME

Remove-HPOVStoragePool

SYNOPSIS

Delete storage pool resource(s).

SYNTAX

 Remove-HPOVStoragePool [-storagePool] <Object> [[-WhatIf] <SwitchParameter>] [[-Confirm] <SwitchParameter>]  [<CommonParameters>]
 Remove-HPOVStoragePool [-storagePool] <Object> [-storageSystem] <Object> [[-WhatIf] <SwitchParameter>] [[-Confirm] <SwitchParameter>]  [<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 None
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.


Wiki Table of Contents

Clone this wiki locally