# delete partition wit powershell v2.0

**URL:** https://forums.powershell.org/t/delete-partition-wit-powershell-v2-0/2918
**Category:** PowerShell Help
**Created:** [August 1, 2014, 9:21am UTC](https://forums.powershell.org/t/delete-partition-wit-powershell-v2-0/2918 "2014-08-01T09:21:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![open-qwerty](https://avatars.discourse-cdn.com/v4/letter/o/e19adc/32.png) [@open-qwerty](https://forums.powershell.org/u/open-qwerty)
#### Post date: [August 1, 2014, 9:21am UTC](https://forums.powershell.org/t/delete-partition-wit-powershell-v2-0/2918/1 "2014-08-01T09:21:55Z")

</div>

I can not delete a partition with powershell 2.0.  
I get the following error with the command:  
remove-partition  
Term ‘remove-partition’ is not recognized as the name of a cmdlet, function, operable program, or script file.  
Thank you

---

<div class="post-metadata">

### Author: ![adnan-rashid](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@adnan-rashid](https://forums.powershell.org/u/adnan-rashid)
#### Post date: [August 1, 2014, 9:29am UTC](https://forums.powershell.org/t/delete-partition-wit-powershell-v2-0/2918/2 "2014-08-01T09:29:25Z")

</div>

that might be, because it doesn’t seem to exist

you could go gcm _partition_ to see what is available matching the word partition.

a quick google search shows up clear-disk - is that closer to what you are after?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)
#### Post date: [August 1, 2014, 11:07am UTC](https://forums.powershell.org/t/delete-partition-wit-powershell-v2-0/2918/3 "2014-08-01T11:07:18Z")

</div>

Remove-Partition is one of the many cmdlets that are only available in Windows 8 and later. It may be possible to do this with WMI (though I’d have to double check that; much of WMI is read-only), but you can definitely leverage the old DISKPART command-line utility, if nothing else. See [url][http://technet.microsoft.com/en-us/library/cc738489(v=ws.10).aspx[/url]](http://technet.microsoft.com/en-us/library/cc738489(v=ws.10).aspx%5B/url%5D)

---

<div class="post-metadata">

### Author: ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)
#### Post date: [May 16, 2024, 8:47pm UTC](https://forums.powershell.org/t/delete-partition-wit-powershell-v2-0/2918/4 "2024-05-16T20:47:44Z")

</div>


