PowerShell Logo Small

Remove-Partition



This is the built-in help made by Microsoft for the command 'Remove-Partition', 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 the specified Partition object on an existing disk and any underlying Volume objects.

SYNTAX


Remove-Partition [-DiskNumber] <UInt32[]> [-PartitionNumber] <UInt32[]> [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf]
[<CommonParameters>]
Remove-Partition [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -DriveLetter <Char[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-Partition [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -DiskId <String[]> -Offset <UInt64[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-Partition [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-Partition cmdlet deletes the specified Partition object on an existing disk and any underlying Volume objects.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=307014
Get-Partition

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Remove-Partition -DriveLetter Y



This example removes the partition associated with drive letter Y.




EXAMPLE 2

PS C:\>Remove-Partition -DiskNumber 5 -PartitionNumber 2



This example removes partition number 2 from disk number 5.