How to Securely Erase Your SSD Without Destroying It

Affiliate Disclosure: By buying the products we recommend, you help keep the lights on at MakeUseOf. Read more.


Solid state drives are frequently referred to as the best upgrade you can make to your PC. Trading off disk space for speed is an increasingly popular option, but just like USB sticks and SD memory cards, SSDs can only be written to a limited number of times 101 Guide To Solid State Drives 101 Guide To Solid State Drives Solid State Drives (SSDs) have really taken the mid-range to high end computing world by storm. But what are they? Read More .

This presents some interesting problems, particularly when it comes to erasing data (and doing so securely). Tools like Darik’s Boot and Nuke How to Wipe Your Hard Disk Drive Leaving the OS Intact How to Wipe Your Hard Disk Drive Leaving the OS Intact So you want to get rid of your computer. To keep your data secure you will want to securely wipe the drive. This ensures that no one can recover the deleted files. However, you might... Read More  are not only ineffective, their write-intensive nature can vastly reduce performance and shorten SSD drive life.

Don’t get it wrong, securely erase your SSD the right way (if you even need to at all).

Only Do This If You Have To

Generally speaking, you should never have to perform any maintenance on your solid state drive. Such storage media has been designed with self-sufficiency in mind, using a series of algorithms and failsafes put in place to both maximise drive life and ensure data is properly discarded. The first protection comes in the form of wear levelling, designed to evenly distribute stored data between SSD blocks to ensure even wear.


As a reminder, traditional hard drives store files in physical locations on a magnetic platter, which is then indexed in the file system What A File System Is & How You Can Find Out What Runs On Your Drives What A File System Is & How You Can Find Out What Runs On Your Drives What is a file system and why do they matter? Learn the differences between FAT32, NTFS, HPS+, EXT, and more. Read More and accessed using a mechanical arm – a very linear way of doing things. While SSDs also use file systems to communicate data storage locations to the host system, they independently re-shuffle data for wear levelling. Those changes are recorded on a separate map. In other words, SSDs do not use any physically indexable locations, and software cannot specifically target sectors on the disk. Basically, your computer has no way of telling “where” that information was just copied to.

To comply with wear levelling, the SSD must constantly move data around the drive to ensure all blocks are worn at an equal rate. Using a secure “file shredder” to overwrite a specific file or folder many numbers of times is not going to work, because the drive writes all new incoming data to various different blocks, depending on its needs. Only the drive knows where this data is written, so secure deletion tools actually harm SSDs by performing an unnecessary number of additional writes.

You’re probably wondering how data is ever deleted from an SSD, particularly if data is constantly moved. Thankfully the TRIM command is designed to solve such a conundrum by marking blocks of data the drive no longer considers in use to be wiped internally. Simply put, your discarded data will eventually vanish into thin nothing and be irretrievable, but only your drive really knows when that will be.

SSD Rocks

For a much more detailed look at TRIM and garbage collection, you should read our article on the usefulness of TRIM on modern SSDs Why TRIM is Important to Solid State Hard Drives? [Technology Explained] Why TRIM is Important to Solid State Hard Drives? [Technology Explained] Read More .

It’s also worth remembering that these drives often use a small amount of unallocated space as a buffer for moving data around, which you’re very unlikely to be able to access. This would technically mean data remains on a drive even after it has been securely erased.

Securely Erasing an SSD

Fortunately, it is possible to erase most SSDs, though this is closer to a “reset” than a wipe. The “ATA Secure Erase” command instructs the drive to flush all stored electrons, forcing the drive to “forget” all stored data. This command essentially resets all available blocks to the “erase” state, which is what TRIM uses for garbage collection purposes.

ATA Secure Erase

This command does not actually write anything to the drive. Instead it causes the SSD to apply a voltage spike to all available NAND in unison, resetting every available block of space in one operation. By doing this, you will use one whole program-erase cycle for your drive – a small dent in drive life, but still unnecessary unless you’re troubleshooting.

Secure Erase Using Manufacturer Software

Most manufacturers supply software for their solid state drives in order to update firmware and perform tasks like secure erase. While it’s impossible for us to check every manufacturer, we’ve made a list of available downloads for major brands below.

While this is the first place we’d recommend you go, this won’t always work as you’ll often need to run the software in Windows (and you probably installed Windows to your SSD). You might also find that your manufacturer hasn’t implemented the “ATA Secure Erase” command into their software, yet. In this case, try the next step.

Download: Intel Solid State Toolbox / OCZ Toolbox / Corsair SSD Toolbox / Samsung Magician / SanDisk SSD Toolkit

Secure Erase Using Parted Magic

We’ve covered Parted Magic in the past Parted Magic: A Complete Hard Drive Toolbox On One Live CD Parted Magic: A Complete Hard Drive Toolbox On One Live CD Take control of your hard drives. Whether you want to edit your partitions, clone an entire drive, check SMART data or otherwise manage the way your computer's data is organized, Parted Magic is the tool... Read More  – it’s a veritable box of tricks. Before it was swallowed up by Symantec, Partition Magic made all kinds of functions that previously required long command lines easy. Parted Magic does the same, except it’s a whole Linux distribution and it now costs $4.99.

Parted Magic

The project was free in the past, but users selling pre-loaded USB sticks on eBay and dwindling donations prompted the project’s leader to place the files behind a paywall. Still, $5 to restore your SSD to “factory fresh” levels of performance isn’t a huge ask:

  1. Download Parted Magic and create a mountable USB drive using Unetbootin.
  2. Boot the drive and choose option 1, Default Settings.
  3. Once booted head to Start (bottom left) > System Tools > Erase Disk.
  4. Choose the “Internal:Secure Erase command writes zeroes to entire data area” option, then confirm the drive you want to erase on the next screen.
  5. If you are told your drive is “frozen”, you will need to click the Sleep button and repeat this process until you can proceed further. If your drive indicates a password requirement, leave the password as “NULL”.
  6. Confirm that you have read and understand the risks, hit Yes to erase your drive.

The erase process takes a matter of seconds, then you’re done.

A Word for Mac Users

According to forum chatter, Parted Magic works just fine on a Mac – provided you can get it to boot in the first place. While Macs can boot operating systems from USB drive, it’s notoriously difficult to get right. If your Mac SSD has a problem and it’s under warranty, it’s much easier to let Apple deal with it – even if it’s just a software problem.

You can check out our own guide to booting a USB stick on a Mac How to Create and Boot From a Linux USB Drive on Mac How to Create and Boot From a Linux USB Drive on Mac There are a few ways to get a create a live Linux USB drive that will boot on your Mac: you can do it with freeware, or get your hands dirty with the command line. Read More , but as you can see from the comments your mileage may vary. If you’re only after a fresh start, you can reinstall OS X How to Install macOS From USB How to Install macOS From USB Want to install macOS from a USB drive? We'll walk you through this alternative method for installing macOS. Read More like you would on any Mac, just don’t choose to securely erase by “shredding” when formatting.

Image credits: Laineema Via Flickr, HDD vs. SSD Test (Simon Wüllhorst), Intel Branding (Brandon Daniel)

Explore more about: File Management, Solid State Drive.

Whatsapp Pinterest

Enjoyed this article? Stay informed by joining our newsletter!

Enter your Email

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. ThaCrip
    March 29, 2019 at 11:08 am

    From what I understand in why Secure Erase on a SSD works so quickly (as in like 2 seconds or so tops) is because, from what I read, some SSD's (like the popular Samsung etc) are encrypted within the drive itself when it's in basic use as when you issue the Secure Erase command it simply deletes a encryption key which is used to decode(read) any of the data and changes it to a new one. so basically while your data might still be on the drive it won't be able to be recovered without that key. so it's like the data is erased and then you start anew. because prior to finding that out it just did not make much sense in how a SSD could wipe data that fast. but after reading that it makes sense why my Samsung SSD preforms a Secure Erase so quickly.

  2. Oyvind Overby
    August 3, 2017 at 7:21 pm

    I downloaded PartedMagic and paid 9USD (not 5 as the article says). I installed it on a botable USB stick using Unetbootin and it booted just fine on a laptop where I have an internal 128Gb SAMSUNG microSSD drive (not MiniSSD).
    However, - and regretfully as very often is the case - these "magic" utility software packages only runs their magic when everything is in working order.
    My SSD drive seems to have a problem, but the so called "test" features of PartedMagic only hangs at 10% forever. It's disappointing that a SW feature supposed to test, detect and report errors is completely unable to do so.
    Waste of time (and a bit of money).

  3. John
    August 3, 2017 at 6:36 am

    Nowadays (2017+) SSD are not so prone to wearing, and there is much greater chance that You will replace Your SSD due to upgrade needs (bigger capacity/faster speed/newest slot type) than due to wearing.
    I had (PMagic) erased SSD 50+ times and there is no sign of any deterioration.
    Average users do not have to perform secure erase; I did it because I usually (on purpose) install suspicious software and malware, and after that the best way to ensure security is to secure erase SSD, than simply put back Your SSD (healthy, previously made) backup.

  4. gtmark1
    June 17, 2016 at 7:39 am

    I need a manual on how to protect a SSD. These articles are minimal at best. Nice enough to get the brain working. How about allocating .exes to HDDs. What about Windows Disc Cleanup? What about those Temporary Files that need to be cleaned up? What about using CCleaner? What about System Restore?What about system logs and logs created by your antivirus and malware cleaners? And I now know not to use Defrag on an SSD. See? More important stuff needs to be addressed! How do we configure the OS and the hardware to keep the SSD fresh? Logs- the logs wills be needed to be stored to the HDD for removal incl antivirus and other peripheral logsl. How do we do this? This article and many more i have read do not supply the needed info.

    • gtmark1
      June 17, 2016 at 7:46 am

      This is to say- how do we put necessary stuff and what is necessary on the SSD and what can we hedge to the HDD to save the SSD?

  5. bradford
    March 9, 2016 at 8:44 pm

    I understand the concept that the OS is unaware where the drive is writing data which is why a sector by sector wipe would be detrimental to the drive. However, I am wondering how whole drive encryption works since i understood that to work in the same manner?

  6. Edwin
    April 12, 2015 at 9:48 pm

    I am new to SSD and how they work. I recently did an Active Book Disk image of Win 7 Pro 64bit restore to a new HP 840G1 EliteBook and it appears to have killed the system. Now I get a variety of errors at boot. Everything from missing files, corrupted files, bad patch file, etc. There doesn't seem to be a specific error. I wiped the drive, with Active Boot Disk and did a plan Win7 install and I get the same errors. I don't even know if this is a SSD problem but I have done this procedure dozens of times before on non-SSD systems and all worked as designed. Any suggestion would be appreciated.

  7. LG
    April 2, 2015 at 5:16 am

    Is secure erase erasing the data to forensic level?

  8. RedHat
    May 28, 2014 at 1:02 am

    I don't understand why you can't just a do a low level format? Either way the entire drive gets flagged and overwritten once, but a low level format can easily be done from Windows without purchasing any other software.

    • BlueHat
      February 17, 2015 at 6:19 pm

      Wouldn't work properly because the OS cannot control where it writes to on the drive. The SSD's controller is responsible for that, and due to wear leveling algorithms, wouldn't get you the intended results. With an SSD, all you need is to perform a "secure erase."

  9. Godel
    May 8, 2014 at 10:34 pm

    Makers of erasure programs such as CCleaner should add a simple "delete" option to their programs for SSD users, as opposed to the usual overwrite methods, and allow Trim to get rid of every-day garbage.

    The cleaner programs would still have a function in that they can locate the tmp, log, etc files scattered all over the place, they'd just rely on the SSD's Trim to do the actual deletion.

    If you REALLY need to keep your disk secure, the only way is full disk encryption from the beginning, using something like Truecrypt or Bitlocker.

  10. James
    April 24, 2014 at 12:40 am

    It amazes me in this day and age that all OSes don't have and free option built in to store users data encrypted and/or erase it securely as part of an OS "reset".

  11. Vectrexer
    April 14, 2014 at 11:41 pm

    I co do this free on Windows. Why pay $5 the "Free" Linux community.

  12. Ron
    April 14, 2014 at 3:28 am

    Thanks to Tim B. and MakeUseOf for putting me on the right path. I'm sure there are numerous ways to achieve what I was inquiring about but I like your methd best. My 3-user Windows 7 disk is getting long in the tooth and I would rather uses an ISO file any day before damaging the disk any further. Everything is documented now for future use. Using the options outlined on the disk can only underrmine the integrity of any SSD since I was fortunate enough to acquire the disk at a quite resonable price way back, when Microsoft was worried about the reception Windows 7 would get following the Windows Vista blunder, and SSDs were quite expensive at the time. I can't believe I missed this gem in the past. Being a subscriber now, I'll make sure this won't happen again.

    • Tim B
      April 15, 2014 at 12:33 am

      Really glad we could help you out Ron. I totally agree, USB installs are the future. Fast, easy and you can just make another one if anything goes wrong :)

  13. Anthony
    April 13, 2014 at 4:27 am

    Where it says "We’ve covered Parted Magic in the past..." I'd love to read that article, but the link doesn't work.

  14. Saumyakanta S
    April 12, 2014 at 7:19 pm

    2 minutes silence for MAC users ... haha

    • David P
      July 19, 2017 at 6:13 pm

      Saumyakanta -
      You are right. I got PMagic to boot on a Mac, all it took was about two periods of two minutes of silence, while PMagic time-out probing the hardware.

  15. Ron
    April 12, 2014 at 5:17 pm

    All well and good but, like so many web sites, this article fails to address how to properly "format" the drive for putting the OS on another PC or just simply re-installing the OS all over again on the same PC. I understand it uses the command "diskpart" prior to installing Windows 7 and it preserves the integrity of the SSD while providing a safe way of idoing a clean install of the OS at no expense whatsoever. I had a document of the the procedure and unfortunately misplaced it and can't seem to find the right search string on the Internet to get the information I need. It worked like a charm and I'm dismayed that it's so difficult to find the solution. Anyone have any ideas?

  16. Er1robyn
    April 12, 2014 at 2:09 pm

    Don't do something,so that you have to erase all your data,,,,,freaking ....scary thought

  17. Howard Pearce
    April 11, 2014 at 7:49 pm

    Are there rules on how often you can or should trim ?

    • Achraf A
      May 7, 2014 at 12:23 am

      Nope , you can execute the TRIM command as frequently as you want, each Day, Week, Month, it doesn't matter, when the SSD receives the command, it will check the buffer if there are "deleted" files that their corresponding blocks need to be erased, if the buffer's empty, it will do nothing, if there's something in the buffer, it will erase its blocks.

      In fact, if you've got a modern SSD with the latest firmware update, then your SSD's internal microcontroller would be so fact that it'll process the buffer a few seconds after you delete your files, essentially erasing their corresponding blocks without waiting for a manual TRIM command to be executed by the operating system.