Food

How to Clean Format Hard Drive: Full Wipe Guide

By Hayride Live · Updated · 5 min read

The most common mistake when cleaning a hard drive is formatting the wrong disk or missing the recovery partition, which can leave old data behind. The safe method is to use the built-in Windows or macOS tools, choose the right type of format, and verify the drive is empty before you reuse or sell it. This guide walks you through the full process, from backups to final checks.

Before You Wipe: Back Up and Know Your Drive

Formatting erases everything on the drive, so back up any files you want to keep to another drive, cloud storage, or an external disk. Check the drive’s capacity and label (like C: or D:) in File Explorer (Windows) or Finder (macOS) so you don’t format the wrong one. Also decide whether you need a quick format or a full format, and whether you want to securely erase data (for selling or giving away).

How to Format an Internal or External Hard Drive on Windows

Windows lets you format a drive in two main ways: through File Explorer for a simple wipe, or through Disk Management for more control. Both work for internal and external drives; the steps below cover the most common path.

Quick Format via File Explorer

  1. Open File Explorer (Win + E) and click “This PC” in the left sidebar.
  2. Right-click the drive you want to format (e.g., D: or E:) and select “Format…” from the menu.
  3. In the Format window, set the File system: choose NTFS for Windows-only use, exFAT for compatibility with Macs and game consoles, or FAT32 for very old devices (file size limit 4 GB).
  4. Set Allocation unit size to “Default allocation size” unless you have a specific need.
  5. Uncheck “Quick Format” if you want a full format that scans for bad sectors and takes longer (hours for large drives). Leave it checked for a fast wipe (seconds to minutes).
  6. Click “Start” and confirm the warning that all data will be erased. Wait for the progress bar to finish.

Full Format via Disk Management (for unallocated or stubborn drives)

  1. Press Win + X and select “Disk Management” from the menu.
  2. Find your drive in the lower list. It shows as a block with partitions; make sure you pick the right one by its size and label.
  3. Right-click the partition (the blue bar) and choose “Format…” If the drive shows “Unallocated,” right-click the black bar and choose “New Simple Volume” to create a partition first.
  4. Set the volume label (name), file system (NTFS recommended), and allocation unit size (default).
  5. Check “Perform a quick format” for speed, or uncheck it for a full format. Leave “Enable file and folder compression” unchecked.
  6. Click OK and confirm. The drive will appear as a new empty volume in File Explorer.

How to Format a Hard Drive on macOS (Disk Utility)

On a Mac, you use Disk Utility to erase and format a drive. This works for internal drives (like a second SSD) and external USB drives.

  1. Open Disk Utility from Applications > Utilities, or search for it with Spotlight (Cmd + Space).
  2. In the sidebar, select the drive you want to format. Be careful: click the physical drive (the device, not the volume underneath it) to erase the whole disk, or click a volume to format just that partition.
  3. Click “Erase” in the toolbar.
  4. Name the drive (e.g., “Backup”).
  5. Choose a Format: APFS for modern Macs (SSD or HDD), Mac OS Extended (Journaled) for older Macs or Time Machine, exFAT for cross-platform use with Windows, or MS-DOS (FAT) for very old devices (4 GB file limit).
  6. Choose a Scheme: GUID Partition Map for Intel and Apple Silicon Macs, Master Boot Record for Windows compatibility (if you plan to use the drive on a PC), or Apple Partition Map for old PowerPC Macs.
  7. Click “Erase” and confirm. The drive will be wiped and formatted. For a secure erase, click “Security Options…” before erasing and choose a level of overwriting (slower but more secure).

How to Securely Wipe a Drive Before Selling or Disposing

If you’re selling, giving away, or recycling a drive, a normal format is not enough—data can be recovered with special software. For a secure wipe, you have two options: use built-in encryption or a third-party tool (like DBAN or the Windows “clean all” command).

Option 1: Encrypt the Drive Before Formatting (Windows and Mac)

  1. On Windows, enable BitLocker (Pro/Enterprise editions) by right-clicking the drive in File Explorer > “Turn on BitLocker” and following the prompts. On Mac, enable FileVault for the startup disk or use Disk Utility > Erase > Security Options for a one-time overwrite.
  2. Let the encryption finish (can take hours). Then format the drive normally. The encrypted data is now unreadable without the key.

Option 2: Use the Command Line (Windows) or Disk Utility Security Options (Mac)

  1. On Windows, open Command Prompt as administrator (search “cmd”, right-click, “Run as administrator”).
  2. Type diskpart and press Enter. Then type list disk to see all disks. Note the disk number of the drive you want to wipe (e.g., Disk 1).
  3. Type select disk 1 (replace 1 with your disk number) and press Enter. Then type clean all and press Enter. This writes zeros to every sector—can take hours for large drives. When done, type exit.
  4. On macOS, in Disk Utility, select the drive, click “Erase”, then click “Security Options…” and drag the slider to “Most Secure” (writes zeros three times). Click OK and then Erase.

After a secure wipe, the drive will show as unallocated (Windows) or unformatted (Mac). You can then format it normally to reuse it.

How to Tell the Format Worked and Fix Common Problems

After formatting, the drive should appear as empty with the correct file system. To verify, open File Explorer (Windows) or Finder (Mac) and check that the drive shows the correct name and capacity. You can also right-click the drive, select Properties (Windows) or Get Info (Mac), and see the file system and used space (should be near zero).

Symptom Cause Fix
“Windows was unable to complete the format” Drive is write-protected or has bad sectors Check the physical write-protect switch (external drives), or run a full format (uncheck Quick Format) to scan for errors
Drive not showing up in File Explorer Drive is unallocated or has no drive letter Open Disk Management and assign a drive letter, or create a new volume
Format takes forever Full format on a large or slow drive Let it finish; it can take several hours for multi-terabyte drives
Data still recoverable after format Quick format only removes the file index Use a secure wipe method (Diskpart clean all or Mac Security Options) before disposal

If the drive is the one with your operating system (usually C:), you cannot format it while Windows is running. You’ll need to boot from a Windows installation USB, choose “Custom install”, and format the partition during setup. On a Mac, you can format the startup disk from Recovery Mode (restart and hold Cmd+R, then open Disk Utility).

After formatting, if you plan to reuse the drive, make sure to safely eject it (Windows: right-click > Eject; Mac: drag to Trash) before unplugging to avoid data corruption.

Spotted a mistake? Tell us and we will correct it. How we write and check articles.