How to Securely Wipe Your Hard Drive or SSD Before Selling Your Computer
Published on June 29, 2026The Danger of Standard Deleting
When you delete a file or perform a standard quick format, your computer doesn't actually erase the data from the physical drive. Instead, it simply deletes the pointer to that data and marks the space as available for future writing. Until that space is overwritten with new data, anyone with free, downloadable file-recovery software can easily restore your private photos, tax documents, and saved passwords. To protect your identity before selling or donating your computer, you must perform a secure wipe. Here is how to do it safely and effectively on both Windows and Mac.
Method 1: Wiping a Windows PC (Windows 10 & 11)
Windows has a built-in feature that can securely wipe your primary drive during a system reset, eliminating the need for complex third-party software.
- Back Up Your Data: Ensure all your important files are saved to an external drive or cloud storage, as this process is irreversible.
- Open Settings: Go to Start > Settings > System > Recovery (or Update & Security > Recovery on Windows 10).
- Reset the PC: Click on Reset PC (or Get Started).
- Choose "Remove Everything": This ensures your personal files, apps, and settings are targeted for deletion.
- Change the Settings (Crucial Step): On the "Additional settings" screen, click Change settings. Toggle the switch for Clean data? to Yes. This option writes zeroes and random data over your drive, making recovery impossible. Click Confirm.
- Start the Reset: Choose "Local reinstall" or "Cloud download", and click Reset. The process will take several hours, but your data will be permanently unrecoverable.
Method 2: Wiping a Modern Mac (Apple Silicon or Intel with T2 Chip)
Modern Macs utilize hardware-level encryption. Wiping them is incredibly fast and secure because macOS simply destroys the cryptographic keys, rendering all stored data instantly unreadable.
- Sign Out of Accounts: Before wiping, sign out of iCloud, iMessage, and Apple Music to de-authorise the machine.
- Access the Erase Assistant: Click the Apple menu in the top-left corner and select System Settings (or System Preferences).
- Erase All Content: In System Settings, click General > Transfer or Reset > Erase All Content and Settings. (On older macOS versions, click the System Preferences menu in the menu bar and select Erase All Content and Settings).
- Follow the Prompts: Enter your admin password, confirm the action, and let the system securely destroy the encryption keys. Your Mac will restart to a clean "Hello" setup screen, safe for its next owner.
Method 3: Wiping External Drives and Secondary SSDs/HDDs
If you are selling an external storage drive, a secondary internal drive, or using an older computer, use the "Encryption Trick" or built-in disk utilities.
- The Encryption Trick (Universal): The fastest way to securely wipe any drive (especially SSDs, which can be damaged by traditional multi-pass overwrites) is to encrypt it. Enable BitLocker (Windows) or FileVault/Disk Utility Encryption (Mac) on the drive. Once the drive is fully encrypted, perform a standard quick format. Because the encryption key is destroyed during the format, the scrambled data left behind is completely impossible to decipher.
- Using Mac Disk Utility: Open Disk Utility, select the target drive, and click Erase. Click the Security Options button. Slide the security level slider to the right (choose the 3-pass or 7-pass option for older mechanical Hard Disk Drives) and click OK, then Erase.
- Using Windows Command Prompt (HDDs only): Open Command Prompt as Administrator and type format X: /p:3 (replace "X" with your target drive letter). This command formats the drive and overwrites every sector with random numbers three times. Note: Do not use this method on SSDs, as it causes unnecessary physical wear.