10.06.26

How to securely erase an old hard drive before selling, donating or recycling it

Dragging files to the Trash or Recycle Bin does not make an old drive safe to give away. In many cases, deletion only removes the directions your computer uses to find the data; recovery software may still reconstruct photos, tax documents, saved passwords and other private files. CISA warns that even emptied trash can leave information retrievable. Before you sell, donate or recycle a hard drive, solid-state drive or USB flash drive, use a sanitization method that fits the storage technology and the sensitivity of the information.

Why is deleting files or formatting a drive not enough?

A quick format usually rebuilds the file system rather than securely erasing every storage location. The old content may remain until new data overwrites it. Modern drives also manage hidden, reserved and damaged areas that ordinary file deletion may not reach. The latest NIST media-sanitization guidance defines sanitization as making access to target data infeasible for a given level of effort. In everyday terms, your goal is not an empty-looking folder—it is data that a future owner cannot reasonably recover.

What should you do before erasing an old drive?

  1. Identify the media. Confirm whether you have a magnetic hard disk drive, an SSD, a USB flash drive or a removable memory card. The best erasure method differs.
  2. Back up what you need. Copy important documents, photos, license keys and recovery codes to a protected location, then open several files to verify the backup.
  3. Sign out and deauthorize. Remove the device from cloud accounts, subscription software, password managers and device-management services.
  4. Turn on encryption before retirement when possible. Full-disk encryption adds protection while the device is in use and can support cryptographic erase on compatible storage.
  5. Confirm the final destination. A drive you will reuse needs a different approach from one containing highly sensitive data that will leave your control.

How do you securely erase a hard drive, SSD or flash drive?

Start with the device or drive manufacturer’s documented secure-erase, sanitize or factory-reset process. CISA recommends following the manufacturer’s secure-wiping guidance before selling or recycling a device. Avoid downloading a random “drive cleaner” from an advertisement or search result.

  • Magnetic hard drives: Use a trusted overwrite or built-in sanitize command that covers the entire drive. Do not assume one ordinary format is sufficient.
  • SSDs and flash storage: Use the manufacturer’s sanitize or secure-erase feature. Repeated overwriting can miss remapped cells and creates unnecessary wear.
  • Encrypted drives: A supported cryptographic erase can make stored data unreadable by securely destroying the encryption keys. NIST’s 2025 revision specifically expands guidance for cryptographic erase.
  • Failed or highly sensitive drives: Use a reputable professional destruction service that can verify the storage media was destroyed. Do not drill, burn or smash a drive yourself; batteries, sharp fragments and surviving memory chips create safety and privacy risks.

How can you verify that the data is unreadable?

Do not stop when the utility says “complete.” Restart the device or reconnect the drive, confirm that your files and user accounts no longer appear, and review the tool’s completion report. If the drive will be reused, initialize it and confirm it behaves like blank storage. For sensitive business, legal, medical or financial data, use a qualified service that provides a sanitization or destruction record.

Should you recycle or throw away an erased drive?

Recycle electronics through a responsible program rather than putting them in household trash. The EPA estimates that recycling one million laptops saves energy equal to the annual electricity use of more than 3,500 U.S. homes. The EPA also advises removing personal information and handling batteries separately. Check your manufacturer, retailer or local government for an approved collection option.

How does secure drive disposal make you safer online?

Proper sanitization closes a security gap that passwords and antivirus cannot fix after a device leaves your hands. It prevents a buyer, recycler or opportunistic finder from recovering information that could support identity theft, account takeover, financial fraud or convincing phishing. It also protects anyone whose data appeared on the drive, including family members, customers and coworkers.

Before the next trade-in or cleanout, make “back up, sanitize, verify and recycle” your four-step routine. If you cannot confidently identify the drive type or complete the approved process, keep the device secured until a reputable professional can handle it. A few careful steps now can keep years of private data from becoming someone else’s opportunity.