TechBuzzPro

Secure Erase NVMe SSD: Full 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

Secure erasing an NVMe SSD permanently wipes all data and restores the drive to a clean state, which is essential before selling, recycling, or troubleshooting performance issues. Unlike regular formatting, a secure erase uses the drive's built-in firmware command to delete encryption keys and make data unrecoverable. Before starting, back up any files you want to keep, and make sure the drive is not your system drive (the one with Windows installed) unless you are prepared to reinstall the operating system.

What You'll Need

  • Your NVMe SSD installed in a desktop PC or laptop (or an external NVMe enclosure connected via USB).
  • A second working computer or a bootable USB drive with a Linux live environment (like Ubuntu) if the drive is your primary system drive.
  • Access to the drive's manufacturer software (e.g., Samsung Magician, Crucial Storage Executive, WD Dashboard) or a generic tool like Parted Magic (paid) or the free nvme-cli command-line tool.

Step-by-Step

  1. Back up your data. Secure erase permanently destroys all data. Copy anything important to another drive or cloud storage.
  2. Identify your drive. Open Windows Disk Management (right-click Start > Disk Management) or use the manufacturer software to confirm the exact model and drive letter/disk number. Note the capacity and model to avoid erasing the wrong drive.
  3. Check if the drive is in a frozen state. Many NVMe drives lock the secure erase command when the system is running to prevent accidental wipes. You may need to suspend the system (sleep) and wake it, or use a live Linux USB to bypass this.
  4. Use manufacturer software (easiest). Open the tool for your brand (e.g., Samsung Magician, Crucial Storage Executive, WD Dashboard). Look for a "Secure Erase" or "PSID Revert" option under the drive's tools or maintenance section. Follow the on-screen prompts. The software will usually require the drive to be not in use and may ask you to reboot into a special environment.
  5. If you don't have manufacturer software, use nvme-cli on Linux. Boot from a Ubuntu live USB (create it with Rufus or Etcher). Open a terminal and run sudo nvme list to find your device name (e.g., /dev/nvme0n1). Then run sudo nvme format /dev/nvme0n1 --ses=1 (the --ses=1 option performs a secure erase). Confirm the action when prompted. This will wipe the drive completely.
  6. For drives with hardware encryption (OPAL), use PSID revert. If your drive is self-encrypting and you forgot the password, you can use the PSID (Physical Secure ID) printed on the drive's label. In manufacturer software, choose "PSID Revert" and enter the 32-character PSID. This resets the encryption key and makes data inaccessible.
  7. Verify the erase. After the process completes, the drive should appear as unallocated space in Disk Management. You can also check with the manufacturer software that the drive's health is still good and the firmware is intact.

Common Mistakes

  • Erasing the wrong drive. Double-check the model and capacity before confirming. A wrong wipe is irreversible.
  • Using a quick format instead of secure erase. Quick format only removes the file system pointers; data remains recoverable. Always use the secure erase command.
  • Ignoring the frozen state. If the drive is frozen, the secure erase command will fail or be ignored. Suspend/resume or use a Linux live environment.
  • Forgetting to remove the drive from RAID or storage spaces. If the drive is part of a RAID array or Windows Storage Space, you must delete the array first, otherwise the erase may fail.
  • Not disconnecting other drives. To avoid confusion, disconnect all other storage devices except the one you are erasing, especially when using Linux tools.

Tips

  • Use the manufacturer's tool when possible. They are tested and handle the frozen state automatically.
  • For system drives, use a live USB. You cannot securely erase a drive that is actively running the OS. Boot from a USB stick.
  • If your drive supports NVMe-MI (Management Interface), you can use the nvme-cli command nvme sanitize for a more thorough wipe. This is a newer standard that clears all data including cached copies.
  • After secure erase, the drive's performance may improve. If you were experiencing slowdowns due to full NAND, this can restore write speeds.
  • Keep the drive powered on during the erase. Interrupting the process can leave the drive in an inconsistent state.

Troubleshooting

If the secure erase fails with "Operation Not Permitted" or "Device Busy": Close all programs that might access the drive (antivirus, indexing, backup software). In Windows, you can also try using the manufacturer software's "Secure Erase" that reboots into a special mode. On Linux, ensure the drive is not mounted (sudo umount /dev/nvme0n1).

If the drive is frozen: Suspend your system (sleep) and wake it up, then immediately try the secure erase. If that doesn't work, boot from a live Linux USB and run the command there.

If the erase seems to hang: Wait at least 10 minutes. NVMe secure erase can take a few minutes to several hours depending on drive size. If it's still stuck after an hour, force a reboot and try again with a different tool.

If the drive is not detected after erase: Reboot your system. If it still doesn't appear, check the BIOS/UEFI to see if the drive is recognized. If not, reseat the drive in its slot. If it's still not detected, the drive may have failed—try a different slot or another computer.

If the manufacturer software says "Secure Erase is not supported": Your drive may be an older model or a budget drive that lacks the command. In that case, use nvme-cli with the format command, or use a tool like Parted Magic that can issue the ATA Secure Erase command (though NVMe uses a different command, Parted Magic supports NVMe as well).

Frequently Asked Questions

Will a secure erase damage my SSD?

No, it's a standard firmware operation designed for the drive. It does not wear out the NAND more than normal writes.

How long does a secure erase take?

Typically 1 to 5 minutes for most NVMe drives, but larger drives (2TB+) can take up to an hour. The time depends on the drive's controller and capacity.

Can I secure erase an NVMe SSD that is my Windows system drive?

Not while Windows is running. You need to boot from a live USB (like Ubuntu) or use the manufacturer's bootable USB tool.

What is the difference between "Secure Erase" and "Format"?

Format only removes the file system structure, leaving data recoverable. Secure erase permanently deletes all data by resetting the encryption key or overwriting the NAND.

Do I need to secure erase a new NVMe SSD before using it?

No, but it can be useful if you want to ensure a clean state, especially if the drive was previously used in another system or had a RAID configuration.

Can I secure erase an NVMe SSD in an external USB enclosure?

Yes, as long as the enclosure supports NVMe and the drive is recognized. Some enclosures may not pass the secure erase command through, so if it fails, try connecting the drive directly to a motherboard M.2 slot.