Removing Partitions with Microsoft DiskPart*


Maintenance & Performance




Critical Instructions:

  • Disclaimer: Intel is not responsible for lost user data. Before you proceed, back up any important data on your drive.
  • We explain the Microsoft DiskPart* utility below. The Clean command cleans the drive during this process. Cleaning a storage device removes all partitions from the drive and renders the data inaccessible to the user.
  • Read all steps, instructions, and warnings before attempting the DiskPart Clean.
  • Performing a secure erase using the Intel® Solid State Drive Toolbox accomplishes a similar result, but more completely destroys user data. Note that Intel® Solid State Drive Toolbox requires Windows 7* for Secure Erase. 
  • DiskPart Clean makes user data inaccessible on the selected drive. Make sure you clean the correct disk and have your data backed up.
  • Remove all additional drives from the computer, excluding:
    • The drive you are booting from
    • The drive you want to clean
  • The steps below walk you through using the Microsoft DiskPart utility to clean the disk of a previous partition and format. This process results in the loss of any data on the drive. Depending on your computer, the command takes from ten minutes to several hours to complete.
  • Information below applies to any scenario where a DiskPart clean of an entire disk is necessary.
  • Note: This utility does not do a Secure Erase (erase all data from the drive) on the SSD. It only removes the Partitions and Volume information, making the data inaccessible in the traditional form. To do a Secure Erase on Windows 7, you can use Intel® Solid State Drive Toolbox. You must use other methods on later Windows operating systems, such as initiated via UEFI or bootable USB utilities.


Microsoft DiskPart is a powerful tool that you can run on the CMD without using a GUI. The tool is more flexible than Disk Management.

To run DiskPart:

  1. Type DiskPart on the CMD or invoke the tool with the Run window. A User Account Control message pops up.
  2. Provide admin rights to the tool and accept the message to run the tool.


DiskPart has many options and commands. See the basic steps below to initialize and erase a drive.

First, select the drive you're working on:

  • List disk: Displays the list of attached disks and USB flash drives
  • Sel disk (select disk): Selects the scope to work in
  • Clean all: Removes partition and volume information from the selected device

Next, with your device clean (in factory state), create partitions and format it. Select your drive and type the following commands to create partitions:

  • List part: Display partitions available on the drive (a fabric state would not have partitions)
  • Sel part: Used to select a partition to work on
  • Del part: Used to delete the selected partition

If you don't have partitions, you can create a new one.

Create part primary: This command creates a primary partition of the full size of the drive. You can also specify an extended or logical partition or the size desired for the partition using size="xxx".

Now select your partition to format and configure it with the selected partition type:

  • Format override fs=”NTFS” label=”label”: Performs a low-level format (secure erase), configures your partition on NTFS file system, and sets the desired label.

You can also use other parameters and functions of this command. For example, to run a quick format in place of override, type format quick fs=”NTFS” label=”test” size=409600 (size is in MB).

You have created and formatted your partition. If the partition doesn't have a letter assigned, you can't see the drive on Windows*.

To see the drive, type the following commands:

  • List vol: List all volumes available
  • Sel vol: Select the volume that you already create with the last commands.
  • Assign letter: Assign a letter to the drive so Windows sees your drive. The drive is ready to use. For example: assign letter=D.

For more information about DiskPart, see the commands syntax and commands explanation.