Resetting an SSD to One Clean Partition in Windows

Modified on Sun, Jun 21 at 3:28 PM

Y
YES Solutions
Knowledge Base  ·  Windows / Storage

Windows Storage Management

Resetting an SSD to One Clean Partition in Windows

Updated: June 21, 2026  ·  Applies to: Windows 10 / Windows 11  ·  Read time: ~5 min

What This Article Covers

How to reset an SSD that contains leftover EFI, Recovery, or hidden system partitions back to a single clean usable partition using the built-in Windows DiskPart utility. Covers when to use this process, the full step-by-step procedure, optional GPT conversion, and troubleshooting common issues.

⚠️  This Process Permanently Deletes All Data

Running this procedure erases everything on the selected disk — including EFI System Partitions, Recovery Partitions, Windows installation data, OEM partitions, and all files. This cannot be undone.

Confirm you have selected the correct disk before running the clean command. Selecting the wrong disk can erase your operating system drive or another critical data drive.

When to Use This Process

Use DiskPart to clean and repartition an SSD when:

  • A drive has leftover EFI or Recovery partitions from a previous Windows installation
  • Disk Management will not let you delete certain protected partitions
  • The SSD shows multiple fragmented or unallocated sections
  • You are repurposing the disk as a simple storage or data drive
  • You want one clean NTFS or exFAT partition using the full SSD capacity

Do not use this process on your active Windows boot drive unless you are intentionally wiping that system.

1  ·  Open DiskPart as Administrator

DiskPart requires an elevated terminal. Right-click the Start button and select one of the following, then launch DiskPart.

#Step
1Right-click the Start button and select Terminal (Admin), Windows PowerShell (Admin), or Command Prompt (Admin).
2At the prompt, type diskpart and press Enter. A new DiskPart prompt will open.
3All remaining commands in this article are entered at the DISKPART> prompt.

2  ·  Identify and Select the Correct Disk

List all disks, identify the SSD by size, select it, then confirm the selection before touching anything.

#Step
1Type list disk and press Enter. Review the disk numbers and sizes.
2Identify the SSD you want to wipe by its size. Note its disk number (e.g., Disk 1).
3Type select disk X (replacing X with the correct number) and press Enter.
4Type detail disk and press Enter. Verify the model name and size match the SSD you intend to erase.

ℹ️  Do Not Skip the detail disk Step

The detail disk command shows the disk model, size, and current volumes. Always review this output before continuing. A single wrong digit in the disk number can erase the wrong drive.

3  ·  Wipe the Disk and Create a Partition

With the correct disk selected and confirmed, remove all partitions and create one new primary partition.

#Step
1Type clean and press Enter. This removes the partition table and all partition metadata from the disk.
2Type create partition primary and press Enter. Windows creates one partition using the full disk capacity.

⚠️  clean Is Not a Secure Erase

The clean command removes partition metadata — it does not overwrite every sector. For sensitive data disposal, use clean all (overwrites all sectors, takes a long time) or the SSD manufacturer’s secure erase tool. For SSDs, a vendor-sanitize command is generally preferred over clean all.

4  ·  Format and Assign a Drive Letter

Format the new partition and assign a drive letter so Windows can use the disk.

#Step
1For a Windows storage drive, type format fs=ntfs quick label=Storage and press Enter.
2Type assign and press Enter. Windows assigns the next available drive letter automatically.
3Type exit and press Enter. The disk should now appear in File Explorer as a single clean volume.

ℹ️  NTFS vs. exFAT

NTFS is recommended for internal Windows-only storage drives. If the drive needs to work across Windows, macOS, and Linux, use format fs=exfat quick label=Storage instead.

Optional  ·  Convert to GPT Partition Style

For modern systems or drives larger than 2 TB, convert to GPT after running clean and before creating the partition. Add this step between Step 3-1 and Step 3-2 above:

#Additional Step (after cleaning)
+Type convert gpt and press Enter, then continue with create partition primary.

Full Command Reference — Confirm the Correct Disk Number First

 Standard (NTFS)
diskpart
list disk
select disk X
detail disk
clean
create partition primary
format fs=ntfs quick label=Storage
assign
exit

For GPT: add convert gpt after clean. For exFAT: replace the format line with format fs=exfat quick label=Storage.

Troubleshooting

Wrong drive letter was assigned

Open Disk Management (diskmgmt.msc), right-click the new volume, and select Change Drive Letter and Paths.

Disk does not appear in File Explorer

Check that the volume has a drive letter assigned:

diskpart → list volume → select volume X → assign

 

DiskPart says Access is Denied

PowerShell or Command Prompt was not opened as Administrator. Close and relaunch with Admin rights.

Disk is write-protected

Check and clear the read-only attribute, then repeat the clean process:

select disk X → attributes disk → attributes disk clear readonly

Need Help?

Contact YES Solutions Support

If you have questions or run into an issue not covered here, reach out, and we will help.

© 2026 Yates Enterprise Solutions  ·  yatessbs.com  ·  Article ID: YES-KB-004  ·  Last Updated: 2026-06-21

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article