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, pressShift + 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 theclean 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, theclean 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 thelist 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?
Usingclean 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.