TechBuzzPro

How to Delete Windows: Full Drive Wipe Guide

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To delete Windows completely, you need to wipe the drive it's installed on and replace it with another operating system, or remove the partition during a fresh install. This guide covers both: erasing Windows from a drive and removing it from a dual-boot setup. You'll need a USB drive (8GB or larger) with your replacement OS installer, or a Windows installation media if you're just removing the partition. Back up any files you want to keep—this process permanently erases everything on the target drive.

What You'll Need

  • A USB flash drive (8GB or larger) with the installer for your new OS (e.g., Linux, another Windows copy) or a Windows recovery drive.
  • Access to another computer to create the bootable USB, if needed.
  • A backup of any personal files from the Windows drive you're deleting.
  • Your product key for Windows if you plan to reinstall it later (not needed if switching to Linux).

Step-by-Step

Option A: Wipe the Entire Drive (e.g., to Install Linux)

  1. Back up your data. Copy files you want to keep to an external drive or cloud storage. This step is non-negotiable—everything on the drive will be erased.
  2. Create a bootable USB with your new OS. Use a tool like Rufus (Windows) or balenaEtcher (Mac/Linux) to write the ISO file to the USB. For Linux, download the ISO from the official distro site (e.g., Ubuntu, Fedora).
  3. Boot from the USB. Restart your PC and press the boot menu key (often F12, F2, Esc, or Del) during startup. Select the USB drive from the boot menu. If you're not sure which key, check your motherboard manual or look for a brief on-screen prompt.
  4. Choose "Try" or "Install" the new OS. In the live environment, you can open a terminal and use fdisk or gparted to manually wipe the drive, but the installer's guided option is simpler.
  5. Select "Erase disk and install [OS name]". This option automatically deletes all existing partitions (including Windows) and creates new ones. Confirm the target drive is the one with Windows—installers usually show a drop-down list of drives.
  6. Proceed with the installation. The installer will format the drive and copy the new OS. Once finished, remove the USB and reboot. Windows will be gone.

Option B: Remove Windows from a Dual-Boot Setup (Keep Linux)

  1. Back up any Windows files you need. The Windows partition will be deleted.
  2. Boot into your Linux system. Open a terminal.
  3. Identify the Windows partition. Run lsblk or fdisk -l to list disks. Look for a partition with the ntfs filesystem (Windows uses NTFS). Note its device name, like /dev/sda3.
  4. Delete the Windows partition. Use gparted (GUI) or fdisk (command line). For fdisk: sudo fdisk /dev/sda, then type d to delete a partition, select the number, and w to write changes. Be careful—double-check you're deleting the right partition.
  5. Update the bootloader. After deleting the partition, run sudo update-grub (on Debian/Ubuntu) or sudo grub-mkconfig -o /boot/grub/grub.cfg (on Arch) to remove the Windows entry from the boot menu.
  6. Resize the remaining partition (optional). If you want to reclaim the freed space, use gparted to extend your Linux partition into the unallocated space. Right-click the Linux partition, select Resize, and drag to fill.

Option C: Remove Windows Partition Without Reinstalling (Using Windows Installer)

  1. Create a Windows installation USB. Use Microsoft's Media Creation Tool from another PC.
  2. Boot from the USB. When the installer loads, select your language and click "Next".
  3. Click "Install now". Accept the license terms.
  4. Choose "Custom: Install Windows only (advanced)". This shows the partition list.
  5. Delete the Windows partition(s). Select each partition on the drive you want to wipe and click "Delete". Confirm when prompted. This erases Windows and any recovery partitions.
  6. Exit the installer. You can close the window or press Shift+F10 to open Command Prompt and type exit to reboot. The drive is now empty.

Common Mistakes

  • Wiping the wrong drive. If you have multiple drives, you might erase your backup or another OS. Always verify the drive model and size in the installer before proceeding.
  • Forgetting to back up files. Once you delete a partition, the data is gone unless you use recovery software (which is not guaranteed).
  • Skipping the bootloader update. In dual-boot, deleting Windows without updating GRUB leaves a dead menu entry that can cause boot issues.
  • Using the wrong partition tool without understanding. fdisk is powerful—a wrong command can erase your entire disk.

Tips

  • Use a live Linux USB if you're unsure. Boot into a live session and use GParted to visually see partitions before deleting.
  • Check your BIOS/UEFI boot mode. If Windows was installed in UEFI mode, your new OS should also be installed in UEFI mode to avoid boot issues. The installer usually auto-detects.
  • Keep a Windows recovery drive. If you might need Windows later, create a recovery USB before wiping—it's easier than downloading a new ISO.
  • Secure erase for sensitive data. If you're selling the drive, use a tool like dd or DBAN to overwrite the entire disk, not just delete partitions.

Troubleshooting

If the new OS doesn't boot after wiping Windows: Check that the boot order in BIOS/UEFI is set to the correct drive. If you installed Linux, reinstall GRUB using a live USB: boot the live environment, mount your root partition, and run grub-install and update-grub.

If the installer doesn't show the "Erase disk" option: Your drive might have a protected partition or be in RAID mode. Go into BIOS and change the SATA mode from RAID to AHCI if you see an option. If not, use the manual partitioning option and delete all partitions yourself.

If you accidentally deleted the wrong partition: Stop immediately. Do not write anything to the drive. Use a data recovery tool like TestDisk (on a live Linux USB) to attempt to restore the partition table. Success is not guaranteed, but it's your best chance.

If the USB won't boot: Disable Secure Boot in BIOS (temporarily) or enable Legacy/CSM boot. Also ensure the USB is formatted correctly (FAT32 for UEFI). Try a different USB port (preferably USB 2.0).

Frequently Asked Questions

Will deleting Windows void my PC's warranty?

No, deleting the OS does not void hardware warranties. However, if your PC came with Windows, you may lose the ability to use manufacturer recovery tools, but the warranty remains.

Can I delete Windows without a USB drive?

Yes, if you have a dual-boot setup, you can delete the Windows partition from within Linux using GParted or fdisk. For a single-boot system, you need a bootable USB or DVD to run an installer.

What happens to my files on the Windows partition?

They are permanently deleted when you delete the partition. Back them up first if you need them.

Can I reinstall Windows later after deleting it?

Yes, you can reinstall Windows using a Microsoft installation USB. You'll need a valid product key, though the digital license tied to your hardware may be recognized automatically if you reinstall the same edition.

Does deleting Windows remove viruses?

Yes, wiping the entire drive removes all software, including malware. However, if the virus is in your BIOS or firmware, it may survive—that's rare and requires special tools to fix.

Is it safe to delete the Windows recovery partition?

It's safe if you don't plan to use Windows recovery. But it's recommended to keep it if you might reinstall Windows, as it contains tools to repair the system.