PowerShell Logo Small

Remove-StoragePool



This is the built-in help made by Microsoft for the command 'Remove-StoragePool', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Deletes a storage pool and associated VirtualDisk objects.

SYNTAX


Remove-StoragePool [-FriendlyName] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-StoragePool [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -Name <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-StoragePool [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -UniqueId <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-StoragePool [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-StoragePool cmdlet deletes a storage pool. If the storage pool contains virtual disks, you must delete the virtual disks prior to removing the storage pool.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=307017
Get-StoragePool
New-StoragePool
Set-StoragePool

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Remove-StoragePool -FriendlyName "DemoPool"



This example removes the storage pool with the friendly name DemoPool. When a storage pool is created, it consumes one or more physical disks to create the pool, from which
virtual disks are subsequently created. The removal of a storage pool, which can only be performed after all virtual disks have first been removed, destroys the storage
pool, and returns the physical disks back to a non-pooled state, where they may be re-consumed.