Why deleted data is still there, and how to remove it
Deleting a file does not remove it. The computer forgets where the file is and leaves the contents in place until something else is written on top. Anyone who later gets the disk can often bring the contents back. No background is assumed. Laptops are sold, printers go back at the end of a lease and broken disks are sent for repair. A security professional must know how data is truly removed, and which method works on which kind of storage.
By the end of this unit you will be able to:
- Explain why deleting or formatting leaves data recoverable
- Put erase, clear, purge and destroy in order of strength and say what each defeats
- Explain how overwriting, degaussing and cryptographic erase work, and where each fails
- Choose a sanitisation method from the media, the data's sensitivity and where the media goes next
Twelve computers at the school fair
An illustrative example
A village primary school replaces twelve classroom computers. The caretaker deletes every file, empties the recycle bin and, for good measure, formats each disk, which takes a few seconds. The computers are sold at the school fair for 20 pounds each.
A parent buys one for a teenager. With a free recovery program the teenager brings back class lists, a spreadsheet of pupils who receive free school meals, and letters about a child protection case.
The files were deleted and the disks formatted. Why was the data still there, and what should have been done instead?
Deleting removes the index card, not the file
A storage device keeps two things: the contents of every file, and an index that says where each file's contents lie. Deleting a file removes its entry from the index and marks the space as free. The contents stay where they were until a new file happens to be written over them. A quick format does the same to the whole device. It writes a fresh, empty index and leaves the old contents alone.
The library catalogue
A library throws away the catalogue card for a book and leaves the book on the shelf. Nobody can look the book up. A visitor who walks along the shelves will still find it.
Data remanence is the data that remains on storage after an attempt to remove it. The word first described the faint magnetism left on a tape or disk after erasure. It now covers leftovers on any kind of storage. They hide in more places than the visible files.
- Space marked as free, which still holds the deleted files
- Spare areas that the device keeps for its own use and the user cannot reach
- Temporary copies made by programs
- Backups and duplicate copies held elsewhere
- The built-in storage of printers, copiers and phones
Media sanitisation is the removal of data from media so that it cannot be recovered with a stated level of effort.
Four words in order of strength
| Word | What is done | What it defeats | Media usable afterwards |
|---|---|---|---|
| Erase or delete | The index entry is removed | Nothing. Ordinary recovery tools bring the data back | Yes |
| Clear | Every location the user can reach is overwritten, or the device is reset to its factory state | Recovery through the device's normal connection with ordinary tools | Yes |
| Purge | A method that reaches the whole device, including areas the user cannot, makes recovery infeasible | Recovery in a specialist laboratory | Usually |
| Destroy | The media is physically reduced so that it can never store data again | Recovery in a specialist laboratory | No |
Erasing is not sanitisation. Clear, and destroy are the three methods defined by the United States National Institute of Standards and Technology (NIST), whose is the usual reference.
The difference between clear and purge is the attacker assumed. stops a curious buyer with a recovery program. Purging and destroying are meant to stop a well-funded laboratory.
Paper has one method only. It cannot be cleared or purged, so it is destroyed.
Overwriting, degaussing and cryptographic erase
Overwriting writes meaningless data, such as zeros, on top of the old data. A magnetic hard disk stores data as magnetised spots on spinning platters, and one complete pass over it normally defeats recovery. Old rules that demanded many passes have been withdrawn.

A magnetic hard disk stores data as magnetised spots on spinning platters, which is why overwriting or a matched degausser can remove it.
- 1Platter. Holds data as magnetised spots and spins while the disk works.
Photograph: Open hard-drive by Zzubnik, public domain. Cropped and resized.
A solid state drive (SSD) stores data in electronic cells with no moving parts, as do phones and memory sticks. These devices spread their writing across cells to even out wear, and keep spare cells in reserve. An ordinary overwrite misses data in cells the computer cannot address. They need their own built-in sanitise command, which reaches every cell, or . Where the drive need not be reused, physical destruction is the most certain method for a solid state drive.

A solid state drive is a circuit board of chips with no moving parts and nothing magnetic, so degaussing does nothing to it.
- 1Chips holding electronic cells. Each chip stores data in electronic cells, not as magnetism.
- 2Empty case. Nothing inside moves or spins.
Photograph: SSD sisu by Arvutistuudio, CC BY-SA 4.0. Cropped and resized.
Degaussing passes magnetic media through a powerful magnetic field that scrambles the stored pattern. It works only on magnetic media: tapes and magnetic hard disks. It does nothing to SSDs, memory sticks or optical discs such as CDs and DVDs. It usually leaves a hard disk unusable. A modern high-density disk may need a stronger field than an older machine produces, so the degausser must be matched to the media.
Cryptographic erase works on data that is stored . Destroying every copy of the key leaves only unreadable , in seconds, however large the device. It counts as a purge on three conditions.
- The data was encrypted from the first moment it was stored. Nothing sensitive was ever written unencrypted.
- The encryption is strong and correctly built.
- Every copy of the key can be destroyed, including backups and copies held by anyone else.
The ciphertext remains on the media. For secrets that must hold for decades, future code-breaking is a , and destruction is the safer choice.
Which method works on which media
| Media | Clear | Purge |
|---|---|---|
| Paper and film | Not possible | Not possible: destroy |
| Magnetic hard disk | Overwrite all reachable space | Built-in sanitise command, cryptographic erase, or a matched degausser |
| Magnetic tape | Overwrite | Degauss |
| Solid state drive, memory stick | Overwrite or factory reset, which may miss hidden cells | Built-in sanitise command or cryptographic erase. Degaussing has no effect |
| Optical disc | Not possible on a disc that can be written only once | Not possible: destroy |
| Phone, printer, network device | Factory reset | The maker's sanitise function or cryptographic erase, where one exists |
| Cloud storage | Delete through the service | Cryptographic erase, usually the only option |
Common misconception
“A degausser wipes any drive.”
Degaussing acts on magnetism. A solid state drive stores nothing magnetically, so it comes out of a degausser with its data intact, and the machine reports no fault.
Choosing by sensitivity and by where the media goes next
Two facts decide the method: how sensitive the data is, and whether the media stays under the organisation's control. The type of media then decides which technique can deliver that strength.
Sensitivity and control decide the method
Read this figure as text
Two facts decide the sanitisation method: how sensitive the data is, and whether the media stays under the organisation's control. The type of media then decides which technique can deliver that strength.
- Any disk, tape, phone or other device that has held information is put to the question.
- Clear: for media that stays inside the organisation and is reused at the same level, or held data of low sensitivity. Overwrite everything the user can reach, or reset to the factory state.
- Purge: the least for sensitive media that leaves the organisation's control, by sale, donation, the end of a lease or a warranty swap. Use the device's built-in sanitise command, cryptographic erase, or a matched degausser for magnetic media.
- Destroy: for the most sensitive data, for media that will not be reused, and for media too damaged or too old to purge, or on which no purge technique works. Disintegrate, incinerate or melt it.
- Every method ends with a check that it completed and a record, often a certificate. Cleared media is then reused inside, purged media may leave the organisation, and destroyed media stops at the record.
- Clear
- For media that stays inside the organisation and is reused at the same level, or that held data of low sensitivity.
- Purge
- The least for sensitive media that leaves the organisation's control: sold, donated, returned at the end of a lease, or swapped under warranty.
- Destroy
- For the most sensitive data, for media that will not be reused, and for media too damaged or too old to be purged.
A device repaired on site under supervision, or sent away under a contract that protects , is still under control. A device swapped under warranty and not coming back has left it.
Techniques can be combined. A laptop's keys can be destroyed at the user's desk. The laptop then carries nothing readable on its way to the room where its drive is purged or destroyed.
Every sanitisation ends with a check that the method completed, and a record. The school's computers held Private data and were leaving its control, so a purge was the least it owed the pupils.
A question, worked through
A clinic is returning forty leased laptops at the end of a three-year contract. The laptops hold patient records on solid state drives. Disk encryption was switched on eighteen months ago. Before that, records were stored unencrypted. The lease requires the laptops to be returned in working order. The IT technician offers four ways to prepare them.
Which method is MOST appropriate?
Decide on your answer, then open the reasoning
- Patient records are sensitive and the laptops are leaving the clinic's control, so the method must be a purge or destruction. The lease adds a condition: working order.
- Rule out a: deleting and resetting is clearing at best. On a solid state drive it can leave data in cells the reset never touches.
- Rule out c: cryptographic erase counts only if nothing sensitive was ever stored unencrypted. For the first eighteen months it was, and those leftovers may survive in spare cells.
- Between b and d: both defeat recovery. Destroying the drives breaks the lease, and the data does not call for more than a purge.
- The drive's own sanitise command reaches every cell, leaves the laptop usable, and is checked afterwards. That is option b.
Answer: B. Run each drive's built-in sanitise command and verify the result
Choosing between good answers
- Media holding sensitive data is leaving the organisation's control
- choose purge or destroy. Deleting, formatting and clearing are not enough.
- The media is a solid state drive or flash memory
- rule out degaussing and plain overwriting. Choose the built-in sanitise command, cryptographic erase or destruction.
- Cryptographic erase is offered as an answer
- check its conditions: encrypted from first use, and every copy of the key destroyed. If sensitive data was ever stored unencrypted, it does not qualify.
- The media must be reused or returned in working order
- prefer purge to destroy.
- The media is damaged, cannot run a sanitise command, or held the most sensitive data
- choose destruction.
Check your understanding
5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 5
What to remember
- Deleting and formatting remove the index and leave the contents. What is left is data remanence.
- Clear overwrites what the user can reach and defeats ordinary recovery tools. Purge reaches the whole device and defeats a laboratory. Destroy ends the media's life.
- Overwriting is unreliable on solid state drives, which need a built-in sanitise command or cryptographic erase.
- Degaussing works only on magnetic media, usually ruins a hard disk, and does nothing to solid state drives or optical discs.
- Cryptographic erase is a purge only if the data was always encrypted and every copy of the key is destroyed.
- Sensitivity and loss of control decide the method. The type of media decides the technique.
Say it from memory
What is data remanence, and what are the three sanitisation methods that deal with it?
Remanence is data left on storage after an attempt to remove it. Deleting and formatting leave the contents in place. Clear overwrites what the user can reach and defeats ordinary recovery tools. Purge reaches the whole device and defeats laboratory recovery. Destroy leaves the media unable to store data.
What separates clearing from purging, and which method is the only one for paper?
The attacker assumed. Clearing stops a curious buyer with a recovery program, working through the device's normal connection. Purging and destroying are meant to stop a well-funded laboratory. Paper cannot be cleared or purged, so it is destroyed.
On what three conditions does cryptographic erase count as a purge?
The data was encrypted from the first moment it was stored, so nothing sensitive was ever written unencrypted. The encryption is strong and correctly built. Every copy of the key can be destroyed, including backups and copies held by anyone else.
How is a solid state drive purged, what does a degausser do to it, and what is usually the only purge for cloud storage?
With its built-in sanitise command or cryptographic erase. Degaussing has no effect, because a solid state drive stores nothing magnetically; it comes out with its data intact. Cryptographic erase is usually the only purge option for cloud storage.
When is clear, purge or destroy the right choice?
Clear: media that stays inside the organisation and is reused at the same level, or held data of low sensitivity. Purge: the least for sensitive media that leaves the organisation's control, such as sold, donated, returned at lease end or swapped under warranty. Destroy: the most sensitive data, media not to be reused, and media too damaged or old to purge.
Sources
- NIST SP 800-88 Rev. 2: Guidelines for Media Sanitization, NISTThe definitions of clear, purge and destroy. Overwriting and its limits on flash media. Degaussing for magnetic media only, and its limits. Cryptographic erase and its conditions. Sanitisation chosen by confidentiality and control of the media, then verified and recorded.
- NIST CSRC Glossary: remanence, NISTRemanence as residual information remaining on storage media after clearing.