TechBuzzPro

How to Securely Erase an SSD Before Selling

· 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

Yes, you can securely erase an SSD before selling it, and the best method is to use the drive's built-in Secure Erase command (also called "format with secure erase" or "sanitize") rather than just deleting files or doing a quick format. This command resets all NAND flash cells to their factory state, which both wipes data beyond recovery and restores drive performance. Before you start, back up any files you want to keep, and make sure you know your drive's brand and model (check the label or use a tool like CrystalDiskInfo on Windows).

What You'll Need

  • The SSD you want to erase (it will be completely wiped, so remove any important data first).
  • A computer that the SSD is currently installed in, or an external USB enclosure/adapter to connect it to another PC.
  • Your SSD manufacturer's secure erase utility (download from the official support page) OR a free third-party tool that supports Secure Erase (e.g., Parted Magic, which is paid but widely used, or the built-in options in some BIOS/UEFI).
  • If using the BIOS/UEFI method, a motherboard that supports the "Secure Erase" or "NVMe Sanitize" feature (most modern ones do).

Step-by-Step

  1. Back up your data. Copy any files you want to keep to another drive or cloud storage. Once you erase, there is no recovery.
  2. Identify your SSD's brand and model. On Windows, open Device Manager > Disk drives. On macOS, go to About This Mac > System Report > SATA/SAS/NVMe. Write down the exact model number.
  3. Download the official secure erase utility. For Samsung SSDs, use Samsung Magician; for Crucial, use Crucial Storage Executive; for Intel, use Intel Memory and Storage Tool; for WD, use Western Digital Dashboard. If you have a lesser-known brand, check the manufacturer's website for a "Secure Erase" utility. If none exists, use a generic tool like Parted Magic (paid) or a bootable Linux USB with the hdparm command (free but technical).
  4. If using the manufacturer's utility on Windows: Run the tool as administrator. Look for a "Secure Erase" or "Sanitize" option. Select your SSD, confirm the model, and start the erase. The tool will likely ask you to reboot—it will run a pre-boot environment to complete the erase. Follow the on-screen prompts.
  5. If using the BIOS/UEFI method: Restart your computer and enter the BIOS/UEFI (usually by pressing Del, F2, or F12 during boot). Look for a section like "Advanced," "Storage," or "Security." Find "Secure Erase" or "NVMe Sanitize." Select your SSD, confirm, and wait for the process to finish. This may take a few minutes to a few hours depending on drive size.
  6. If using a bootable Linux USB with hdparm: Create a bootable USB with Ubuntu or another Linux distro. Boot from it, open a terminal, and find your SSD's device name (e.g., /dev/sda) using lsblk. Then run: sudo hdparm --user-master u --security-set-pass p /dev/sdX (replace X with your device letter). Then run: sudo hdparm --user-master u --security-erase p /dev/sdX. Wait for it to complete. This is advanced; only do this if you're comfortable with command line.
  7. Verify the erase. After the secure erase finishes, the drive will appear as unallocated/uninitialized. In Windows, you can open Disk Management and see it as "Unallocated." On macOS, Disk Utility will show it as "Unmounted" or "Uninitialized." If you want to double-check, you can try to recover old files with a tool like Recuva—you should find nothing.
  8. Reinitialize the drive (optional). If you want to leave the drive ready for the next user, you can create a new partition and format it with a basic filesystem (e.g., NTFS or exFAT). This is not necessary for security, but it makes the drive plug-and-play.

Common Mistakes

  • Only doing a quick format or deleting files. This leaves data recoverable with software. Secure Erase is the only reliable way for SSDs.
  • Using a data-destruction tool that writes zeros to the whole drive. While this works on HDDs, on SSDs it can wear out cells and may not reach all areas due to over-provisioning. Use the built-in Secure Erase instead.
  • Forgetting to disconnect other drives. When using a secure erase utility, make sure only the target SSD is connected, or you might accidentally erase the wrong drive.
  • Interrupting the process. Do not shut down or unplug the drive during a secure erase. It can leave the drive in an unusable state.
  • Assuming the drive is encrypted. If you had encryption enabled (like BitLocker), erasing the encryption keys is enough, but you still need to do a secure erase to be safe.

Tips

  • Check if your SSD supports Secure Erase. Most SATA and NVMe SSDs do. If you see an error like "Secure Erase not supported," your drive may be too old or a fake. In that case, use a third-party tool that does a full write of zeros (like the "Write Zeros" option in Parted Magic), but know it's less effective.
  • For NVMe SSDs, use the "Sanitize" command if available. It's faster and more thorough than the older Secure Erase.
  • Do this before you remove the drive from your computer. It's easier to erase while it's still connected via SATA or M.2. If you use an external enclosure, make sure it supports the drive's interface (USB-to-SATA or USB-to-NVMe).
  • If you're selling, consider leaving the drive uninitialized. The buyer can format it themselves. It's a sign that you've wiped it properly.

Troubleshooting

If the secure erase fails or the drive becomes unresponsive:

  • Check the connection. Reseat the drive's cables or try a different port. For external enclosures, try a different USB cable or port.
  • Update the drive's firmware. Some older firmware had bugs with Secure Erase. Use the manufacturer's tool to update firmware first.
  • Try a different method. If the manufacturer's tool fails, try the BIOS/UEFI method. If that fails, try a bootable Linux USB with hdparm.
  • If the drive is stuck in a "frozen" state. This is a common issue with SATA drives. The drive's security features may be frozen. To unfreeze, you may need to suspend your system (sleep) and wake it, or unplug and replug the drive's data cable while the system is off. Then retry.
  • If the drive is not detected at all. Try it in another computer or enclosure. If it's still not detected, the drive may be dead—but that's rare. In that case, you may need to physically destroy it (e.g., drill through the NAND chips) to ensure data is gone.

Frequently Asked Questions

Is a quick format enough to erase an SSD?

No. A quick format only removes the file system pointers, leaving the actual data in the NAND cells. Anyone with recovery software can retrieve files. Use Secure Erase.

Can I use CCleaner or similar to wipe an SSD?

CCleaner's "Drive Wiper" can overwrite free space, but it's not designed for SSDs and may not reach all cells. It's better to use the manufacturer's Secure Erase tool.

What's the difference between Secure Erase and a full format?

A full format on an SSD still doesn't erase data—it just marks all sectors as empty. Secure Erase sends a command to the SSD's controller to physically reset all cells to zero, which is the only reliable method.

Will secure erase damage my SSD?

No, it's designed by the manufacturer to be safe. It resets the drive to factory state, which can actually improve performance. However, it does count as a write cycle, so don't do it more than necessary.

Do I need to erase an SSD if it was encrypted?

If you used full-disk encryption (like BitLocker or FileVault), the data is already unreadable without the key. But to be safe and to remove the encryption metadata, a secure erase is still recommended before selling.

Can I sell an SSD with data on it if I delete the files?

No. Deleted files are recoverable. Always perform a secure erase before selling or disposing of any storage device.