Skip to main content
HTREASURE LTD

Cybersecurity

How to Securely Delete Files on an SSD or Hard Drive

Deleted files can often be recovered. Learn how to securely erase files and drives on SSDs and hard disks before you sell, recycle or give away a computer.

Published

Securely delete files on SSDs and hard drives – HTREASURE LTD guide

Pressing Delete and emptying the Recycle Bin does not erase a file. Windows simply marks the space as free, and recovery software can often get the data back. Before you sell, donate or recycle a computer, or when you need to remove sensitive files, use a secure deletion method suited to the type of drive.

Hard disks (HDD) and SSDs are different

Hard disks store data in fixed locations, so overwriting a file's space destroys it.

SSDs use wear levelling: the drive decides where data is written and keeps spare areas you cannot reach directly. Overwriting a file on an SSD may not destroy every copy, so file shredders are much less reliable on SSDs. Whole-drive methods work better.

Securely deleting individual files

  • On a hard disk: a file shredder utility overwrites the file before deleting it. You can also wipe the free space on a drive with the built-in command cipher /w:C:\, which overwrites deleted data on that volume.
  • On an SSD: the most reliable protection is to use full-disk encryption (BitLocker or Device Encryption) from the start, so any leftover data is unreadable without your key.

Erasing a whole drive before disposal

  • Reset the PC: go to Settings > System > Recovery > Reset this PC, choose Remove everything, then turn on Clean data (Windows 11) or Clean the drive (Windows 10). This takes longer but makes recovery much harder.
  • Use the manufacturer's secure erase tool for SSDs. Most SSD makers provide a utility that triggers the drive's built-in secure erase or sanitise command.
  • Encryption first: if BitLocker was on, the data is already protected. Resetting and erasing adds a further layer.
  • Physical destruction: for drives that are faulty or held very sensitive data, use a certified disposal service and keep the certificate of destruction.

For businesses

Under UK GDPR, organisations must keep personal data secure throughout its life, including disposal. Keep a record of each device you dispose of, the method used and who carried it out. The National Cyber Security Centre (NCSC) publishes guidance on securely sanitising storage media.

Frequently asked questions

Does formatting a drive erase the data?

A quick format does not. A full format in modern Windows overwrites a hard disk with zeros, but for SSDs use the methods above.

Can I securely delete files from a USB stick?

USB sticks behave like SSDs. Encrypt sensitive data with BitLocker To Go, or securely erase the whole stick before passing it on.

Related help

Read about [protecting your business with Cyber Essentials](https://htreasure.com/blog/cyber-essentials-small-business-guide), or talk to our [IT consulting](https://htreasure.com/services/it-consulting) team about a device disposal process.