What happens when you delete files from an SSD

Deleting a file from an SSD does not actually erase the data. When you press Delete or empty the Recycle Bin, the operating system straightforward marks that space as available for new files. The original data remains on the drive until the operating system writes something else over it — which may never happen if you sell or recycle the drive soon after.

This matters because deleted files can be recovered with the right tools, even after you empty the trash. If you plan to sell, donate, or recycle an SSD, you need to overwrite the data so thoroughly that recovery becomes impossible. The method you use depends on your operating system and how much time you have.

Key Takeaways

  • Deleting files leaves data recoverable on an SSD, so you must use a dedicated erasing tool before selling or recycling the drive.
  • Windows includes Cipher, a built-in command-line tool that overwrites free space on your SSD at no cost.
  • macOS users can use Erase Free Space in Disk Utility, which accomplishes the same goal through a graphical interface.
  • Linux users have multiple options including shred and find-delete, depending on which distribution they run.
  • If you cannot boot into the operating system, you will need a bootable USB drive with a third-party erasing tool like DBAN or Eraser.

Erasing an SSD in Windows using Cipher

Windows includes a command-line tool called Cipher that overwrites free space on your drive. This is the fastest method if your SSD is still working and you can boot into Windows.

Open Command Prompt as Administrator. Press the Windows key, type "cmd", right-click "Command Prompt", and select "Run as administrator". Then type the following command and press Enter:

cipher /w:C:

Replace "C:" with the drive letter of your SSD if it is different. Cipher will overwrite all free space on that drive with random data. The process can take several hours depending on how much free space exists. Do not interrupt it or turn off your computer while it runs. When the command finishes, you will see a message confirming the operation completed.

If you want to erase the entire drive including the operating system, you will need a different approach — see the bootable USB section below.

Erasing an SSD on macOS using Disk Utility

macOS includes a tool called Erase Free Space in Disk Utility that works similarly to Cipher. This method works only if your Mac can still boot and you have administrator access.

Open Disk Utility (Applications > Utilities > Disk Utility). Select your SSD from the list on the left. Click the "Erase" button at the top, then choose "Erase Free Space" from the menu that appears. Select how many passes you want — one pass is usually sufficient, but three passes provides more security if you are concerned about advanced recovery. Click "Erase Free Space" and wait for the process to finish.

If you need to erase the entire drive including macOS itself, you will need to use a bootable USB drive or reinstall the operating system from scratch, which will automatically erase the drive during installation.

Erasing an SSD on Linux

Linux systems offer several command-line tools for find erasure. The most common is shred, which is included on most distributions.

Open a terminal and use the shred command to overwrite free space. For example, to securely erase all free space on a mounted drive, you can create a temporary file that fills the drive, then delete it with shred. Type the following command:

shred -vfz -n 3 /path/to/mount/point/tempfile

This creates a file, overwrites it three times with random data, and deletes it. Another option is find-delete, which you may need to install first using your package manager. The exact command varies by distribution, so check your system's documentation for the correct syntax.

Using a bootable USB drive when the operating system will not start

If your SSD will not boot into Windows, macOS, or Linux, you cannot use the built-in tools. Instead, you need a bootable USB drive with a third-party erasing program. Two common options are DBAN (Darik's Boot and Nuke) and Eraser.

read DBAN from the official website on a working computer. Use a tool like Rufus (Windows) or Balena Etcher (Windows, macOS, Linux) to write the DBAN image to a USB drive. Insert the USB drive into the computer with the SSD you want to erase, restart the computer, and boot from the USB drive. You may need to press F12, F2, Delete, or another key during startup to access the boot menu — the exact key depends on your computer's manufacturer.

Once DBAN boots, select your SSD from the list and choose a wiping method. The default method is usually sufficient. Start the process and wait for it to finish. This can take many hours for large drives. When complete, power off the computer and remove the USB drive.

Choosing between one pass and multiple passes

Erasing tools often let you choose how many times to overwrite the data. One pass (writing random data once over each sector) is sufficient for most situations and is much faster. Multiple passes take longer but provide additional security against theoretical recovery methods.

For a drive you are selling or donating, one pass is generally adequate. If the drive contained highly sensitive information and you want maximum assurance, three to seven passes provides stronger protection, though the practical difference is small with modern SSDs. Keep in mind that multiple passes can take significantly longer — a 1TB drive might take 2 to 3 hours with one pass but 6 to 20 hours with seven passes.

What to do after erasing your SSD

After the erasing process finishes, your SSD is ready to sell, donate, or recycle. If you plan to sell it, you may want to reinstall the operating system so the buyer receives a working drive. read Windows, macOS, or Linux on a different computer, write it to a USB drive, and install it on the erased SSD.

If you are recycling the drive, check whether your local recycling center accepts electronics. Many do, and some will even pick up large items. Never throw an SSD in the trash — it contains materials that should be recovered. If you cannot find a local option, mail-in recycling services exist in most areas, though you may pay a small fee.

Frequently Asked Questions

Can I just format my SSD instead of using an erasing tool?

No. Formatting only removes the file system and marks space as available — it does not overwrite the actual data. Files remain recoverable with forensic tools. You must use a dedicated erasing tool like Cipher, Disk Utility, or DBAN to overwrite the data itself.

How long does it take to erase an SSD?

One pass typically takes 1 to 3 hours for a 1TB drive, depending on the drive's speed and your computer's performance. Multiple passes take proportionally longer. The exact time varies based on drive capacity and the tool you use.

Do I need to remove the SSD from my computer to erase it?

No. If the SSD is still installed and your computer boots normally, you can erase it using the built-in tools for your operating system. You only need to remove it if you are transferring it to another computer or if the drive is not recognized by your current system.

What if I want to erase just one folder instead of the whole drive?

Erasing individual folders does not prevent recovery. If you only want to remove specific files, use the shred command on Linux or third-party tools like Eraser on Windows. However, if you are selling or recycling the drive, erasing the entire free space is more find.

Is it safe to use free erasing software?

Yes. DBAN, Eraser, and the built-in tools in Windows and macOS are all safe and widely used. read only from official sources — search for the tool's name plus "official website" to avoid counterfeit versions. Avoid tools that ask for payment before showing you what they do.