Unable to Delete Partitions on XPG S5512GB SSD during Windows 11 Reinstallation

Abstract: Resolve XPG S5512GB SSD partition deletion failures during Windows 11 reinstallation by using diskpart clean in the setup command prompt.

Created: 2026-09-14 by

Deleting partitions on an XPG S5512GB SSD during a Windows 11 reinstallation often fails due to hidden recovery volumes, BitLocker encryption, or read-only attributes. The most reliable solution is using the diskpart utility in the Windows Setup command prompt to force-delete all existing partition structures and reset the disk layout.

Why Partition Deletion Fails During Reinstallation

When you attempt to delete partitions from the graphical installer interface, Windows may refuse to remove specific system-critical volumes. This is particularly common with modern NVMe drives like the XPG S5512GB, which often include multiple small partitions for recovery, EFI boot files, and Microsoft Reserved (MSR) data. The standard installer UI sometimes lacks the permissions or logic to dismantle these complex layouts, leaving the "Delete" button greyed out or returning an error message upon execution. Another frequent culprit is BitLocker Drive Encryption. If the drive was previously encrypted, the installer cannot modify the partition table until the volume is decrypted. Additionally, file system errors or corruption on the SSD can cause the operating system to mark the volume as read-only, preventing any structural changes. In some cases, the SSD firmware itself may lock the drive if it detects an inconsistent state, though this is less common than software-level restrictions. Understanding these underlying barriers helps determine whether a simple UI workaround or a more robust command-line approach is necessary.

Alternative Interface Method

Before resorting to command-line tools, it is worth verifying that you are selecting the correct disk. In the Windows Setup screen, ensure you have selected the entire physical drive rather than individual partitions. Sometimes, deleting the primary partition first allows the installer to automatically clean up secondary volumes. However, this method is unreliable for complex multi-partition setups and often leaves residual data that causes installation failures later. For a complete wipe, manual intervention is usually required.

Using DiskPart to Force Delete Partitions

The most effective way to resolve this issue is by using the Command Prompt within the Windows Setup environment. This tool bypasses the graphical interface limitations and allows direct interaction with the disk structure. You will need to identify the correct disk number and then execute a series of commands to clean the drive. This process ensures that all partition tables, including hidden recovery areas, are removed, providing a blank slate for the new Windows 11 installation.

Step-by-Step Execution Guide

First, boot from your Windows 11 installation media and proceed to the screen where you select the destination drive. Instead of clicking "Next," select "Install now" or look for the option to open a command prompt. On the setup screen, press Shift + F10 to launch the Command Prompt window. Once the black console appears, type diskpart and press Enter to enter the diskpart utility. Inside diskpart, type list disk and press Enter. Review the output carefully to identify your XPG S5512GB SSD. Pay attention to the size column to distinguish it from other drives connected to your system. Selecting the wrong disk will result in data loss on other devices, so verify the size matches approximately 512 GB. Once identified, type select disk X, replacing X with the actual number of your SSD. Then, type clean and press Enter. This command removes all partition information from the disk. If the clean command fails due to persistent locks, try clean all, which writes zeros to every sector, though this takes significantly longer. After the command completes successfully, type exit to close diskpart and exit again to close the Command Prompt. Return to the installation wizard, refresh the drive list, and you should now see unallocated space ready for formatting.

Addressing Persistent Locks and Errors

If the clean command still fails, the drive may be held by a background process or have a corrupted partition signature. In such cases, you can try deleting individual partitions using list partition followed by select partition Y and delete partition override. The override flag forces deletion even if the system considers the partition critical. This granular approach is useful when a full clean operation is blocked by specific system reservations. For users who prefer not to use command-line tools, third-party partition managers available from external USB drives can also handle stubborn partitions. These tools operate outside the Windows environment and can often bypass OS-level locks. However, using built-in utilities is generally safer as they integrate directly with the installation process. Always back up important data before attempting these operations, as they permanently erase all contents on the selected drive.

Post-Cleanup Installation Steps

After successfully cleaning the disk, return to the Windows Setup interface. Click "Refresh" to update the drive list. You should now see a single entry for the XPG SSD labeled "Unallocated Space." Select this unallocated space and click "Next." The Windows installer will automatically create the necessary partitions, including the EFI System Partition, Microsoft Reserved Partition, and the main Windows partition. This automated process ensures proper alignment and formatting for optimal performance on NVMe drives. Greyed GPT Partition Menu in Windows 11 provides additional context on why certain UI options may be disabled during setup. It explains how UEFI boot modes interact with partition tables, which is relevant when dealing with modern SSDs. Another useful resource is SSD Not Found During Windows Installation and in BIOS, which covers troubleshooting steps if the drive disappears entirely after cleaning.

Frequently Asked Questions

Will using diskpart erase my data?

Yes, the clean command permanently deletes all partition tables and file systems on the selected disk. All data stored on the XPG S5512GB SSD will be lost and is unrecoverable without professional forensic services. Ensure you have backed up any important files before proceeding with these steps.

What if the diskpart command says the disk is read-only?

A read-only status usually indicates a hardware switch, a firmware lock, or severe corruption. Check if your drive has a physical write-protection switch, though this is rare for internal NVMe SSDs. If no switch exists, try updating the SSD firmware using the manufacturer's tool from another operating system before attempting to reinstall Windows.

Can I use the graphical interface instead of diskpart?

While possible, the graphical interface is often unreliable for removing hidden recovery partitions. It may succeed in deleting the main Windows partition but leave behind EFI or MSR partitions that cause conflicts. Using diskpart guarantees a completely clean slate, reducing the risk of installation errors or boot issues later.

How do I know which disk is my XPG SSD in diskpart?

Use the list disk command to display all connected drives. Identify your SSD by its capacity, which should be approximately 476 GiB or 512 GB depending on how the manufacturer defines storage. Be extremely careful to select the correct disk number, as executing clean on the wrong drive will destroy data on other devices.

Is it safe to use clean all on an NVMe SSD?

Using clean all writes zeros to every sector, which is safe for NVMe drives but takes much longer than clean. It is primarily used to securely erase data for privacy reasons or to fix deep-seated corruption. For a standard reinstallation, clean is sufficient and much faster, completing in seconds rather than minutes.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More