How to Securely Delete Files: Why Deleting Is Not Erasing

Deleting a file usually removes the pointer, not every copy, so secure deletion means finding and sanitizing every place the data lives. Match the method to sensitivity using NIST's clear, purge and destroy levels, remember cloud recovery windows, backups and synced devices, and use cryptographic erase where encryption was in place from the start. Check retention rules and legal holds first, and keep a log of what you removed.
Compare file encryption and sanitization tools for sensitive data.
What actually happens when you press delete
Pressing delete feels final, but in most systems it is only the first step of a longer process. On a computer, deleting a file usually moves it to a recycle bin or trash, and emptying that bin removes the entry that points to the file rather than wiping the content. Until the space is reused, the data may still be recoverable with ordinary tools. Cloud services add more layers, such as trash folders, retention windows and backups.
This gap between deleted and gone is why secure deletion matters. If you are retiring a laptop, closing a client project, or removing a former employee's files, you want to know that the content cannot be pulled back by the next person who gets access to the device or the account. The honest answer depends on where the data lives, what kind of storage holds it, and how sensitive it is.
This guide explains the places a deleted file can survive, the vocabulary NIST uses for sanitization, and practical routines for files, cloud accounts and devices. Pair it with a document retention schedule, which decides when deletion should happen in the first place.
Seven places a deleted file can still survive
Before choosing a method, list where copies might exist. The file you delete is rarely the only copy.

| Location | Why a copy remains | What to do |
|---|---|---|
| Recycle bin or trash | Deletion moves the file first and waits for the bin to be emptied | Empty the bin and check cloud trash separately |
| Free space on the disk | Removing the entry does not necessarily erase the content | Use a proper sanitization method for sensitive data |
| Cloud trash and recovery windows | Providers keep deleted items for a set period | Know the windows and purge where permitted |
| Backups and snapshots | A backup holds the file as it existed when taken | Include backups in your deletion plan |
| Synced devices | Each laptop or phone may hold its own copy | Check every device that syncs the folder |
| Email attachments and downloads | Sent or downloaded copies live elsewhere | Search mailboxes and download folders |
| Shared links and recipients | People you shared with may have kept the file | Revoke access and ask recipients to delete |
Notice that only the first row is something you can fix with one click. The rest need a plan. The guide to revoking shared file access after sending covers the sharing side, and the discussion of backups below covers the rest.
The NIST vocabulary: clear, purge and destroy
The US National Institute of Standards and Technology publishes the reference most organizations use for media sanitization. Its Special Publication 800-88 was revised in 2025: Revision 2 was published in September 2025 and supersedes Revision 1 from December 2014. NIST describes the guide as helping organizations and system owners set up a sanitization program with techniques and controls matched to how sensitive their information is. Its abstract defines sanitization as making access to the target data on the media infeasible for a given level of effort.
NIST's glossary gives short definitions of the three levels, which are useful because they tell you what each level protects against.
| Level | NIST glossary description | Plain meaning |
|---|---|---|
| Clear | Applies logical techniques to sanitize data in all user-addressable storage locations; protects against simple, non-invasive recovery | Ordinary overwrite or a factory reset, enough to stop casual recovery |
| Purge | Uses physical or logical methods that make recovery infeasible using state-of-the-art laboratory techniques | Stronger sanitization that resists laboratory-level recovery, while the media may remain usable |
| Destroy | Makes recovery infeasible using state-of-the-art laboratory techniques and leaves the media unable to store data | Physical destruction of the media |
The glossary adds that clear is usually carried out with ordinary read and write operations, such as overwriting, or a factory-reset option when overwriting is not supported. The point of the three levels is proportion: the more damaging the exposure would be, the stronger the level you need.
Choosing a method by sensitivity and context
NIST's guide ties the decision to the confidentiality category of the information, and your own decision can follow the same logic. Ask what harm follows if the data were recovered, who might try, and whether the device will stay under your control or leave it.
| Situation | Reasonable starting point | Things to check |
|---|---|---|
| Routine files with low sensitivity, device stays in the company | Normal deletion plus emptying the bin | That backups and cloud copies follow your retention rules |
| Confidential files, device stays in use | A clear-level method suited to the storage type | That the method covers all user-addressable locations |
| Confidential device being reassigned internally | Clear or purge, depending on sensitivity | Manufacturer guidance for that device |
| Highly sensitive data, or a device leaving your control | Purge, or destroy if the media will not be reused | Evidence that the method worked, kept in a log |
| Damaged or unreadable media that held sensitive data | Destroy | A record of who destroyed it and when |
Treat the table as a framework for conversation, not a compliance verdict. Regulated organizations should follow the specific requirements that apply to them and should confirm methods with their security or compliance lead.
Cryptographic erase: deleting the key instead of the data
Overwriting every byte of a large drive is slow, and on some storage it may not reach every physical location. Cryptographic erase avoids the problem by sanitizing the encryption key instead of the data. If the data on a drive is stored encrypted and the key is destroyed, what remains is unreadable.

NIST's glossary describes cryptographic erase as a purge technique in which key sanitization is applied to one or more keys. It protects the confidentiality of the encrypted target data and makes recovering the decrypted data infeasible. The glossary cites the Revision 2 publication.
The method only works if the data was encrypted all along, if the key was never copied somewhere else, and if the key destruction is real. If a recovery key was escrowed in an administrator portal or printed and filed, the data may still be readable. The guide to customer-managed encryption keys explains who holds keys in different models, which is the first thing to settle before relying on this method.
Storage that remaps data internally, which includes many solid-state drives, may keep older copies in places the operating system cannot address. For that reason, device makers publish sanitize guidance, and it is worth following rather than relying on a simple file overwrite.
What deletion means in cloud storage
In the cloud you do not control the disks, so deletion means understanding the provider's rules. Two well-documented examples show the pattern.
Google announced that, from October 13, 2020, items in Google Drive trash are deleted automatically after 30 days, where previously they stayed until the user emptied the trash. The same announcement says admins can still restore items removed from a user's trash for up to 25 days for active users, and that shared drive trash already followed a 30-day automatic deletion rule.
Microsoft's documentation for SharePoint and OneDrive describes a similar structure with different numbers. When retention settings are configured to delete, content moves to the first-stage recycle bin, and a 93-day period spans both the first-stage and second-stage recycle bins before permanent deletion. The same page says permanent deletion is suspended if the item must be retained because of another retention policy, or if it is under an eDiscovery hold for legal or investigative reasons, and that the timer job involved can take up to seven days to run.
- Delete does not mean immediately and permanently gone
- Recovery windows protect you from mistakes and also delay true removal
- Holds and retention rules can override your deletion
- Admins may be able to restore what users believe is gone
- Always read the current provider documentation, because windows change over time
To design these settings for your own tenant, read the guide to a cloud storage retention and deletion policy.
Backups, snapshots and synced copies
A deletion plan that ignores backups is only half a plan. Backups exist so that deleted data can come back, which is the opposite of what you want when the goal is removal. Decide how long backups are kept, whether specific files can be removed from them, and whether the backup system itself follows your retention schedule.
Two practical approaches help. First, keep backup retention short enough that expired data ages out on its own and document that period, so you can explain how long a deleted file may still exist in a backup. Second, for highly sensitive material, keep it in a location with its own encryption key, so that destroying the key effectively sanitizes the copies, including those in backups. The trade-offs for ransomware protection are covered in ransomware-proof cloud backups, where immutable copies are designed to resist deletion, which is useful against attackers but needs planning when you must erase data.
Synced devices are the other quiet source of copies. If a folder syncs to five laptops, deleting the cloud copy removes it from each only if sync is working and the devices are online. Check the devices, especially any that were offline or belonged to people who have left. The explanation in cloud backup vs cloud storage vs file sync shows why a deletion in one place does not always reach the others.
Devices that are leaving your hands
Retiring a laptop, phone or external drive is the riskiest moment, because the next owner has physical access. Decide the method before the device leaves.

- Take an inventory of devices and what each one held
- Sign out of accounts and remove the device from your management systems
- Choose a sanitization level that matches the sensitivity of what the device held
- Follow the manufacturer's sanitize or secure erase instructions for that model
- Remember removable storage, memory cards and any other media in the device
- For media that cannot be sanitized reliably, or has failed, choose physical destruction
- Record the device, method, date and the person who performed it
If an outside provider handles disposal, ask what method they use and what evidence they provide, and keep that evidence with your records.
Step by step: delete a sensitive file and its copies
- Confirm the file is allowed to be deleted: check the retention schedule and any active legal hold.
- List where copies may exist: local disks, synced devices, cloud storage, email, shared links and backups.
- Revoke shared links and external access.
- Delete the file in the source system and empty its trash or bin.
- Delete synced and downloaded copies on each device, or remove the device from sync.
- Check cloud recovery windows and purge where the platform and your policy allow it.
- Apply a sanitization method to storage that held highly sensitive data, if the device stays in service.
- Note in a log what was deleted, when, by whom and under which rule.
Step by step: retire a device safely
- Back up anything you still need, and verify the backup restores.
- Remove the device from sync, management and account sign-ins.
- Select the sanitization level for the sensitivity of the data, using NIST's clear, purge and destroy as a guide.
- Run the manufacturer's sanitize or cryptographic erase procedure where available.
- Check that the device no longer boots into your data or shows readable content.
- If the device will not be reused, or sanitization failed, arrange physical destruction.
- Update the asset register and keep the disposal record.
Proving the deletion happened
Deleting is one task; being able to show that you did it is another. A short disposal log answers most questions later. It should list what was removed, where it lived, the method used, the date, the person who did it and the rule that allowed it. Attach any evidence the tool or provider gave you, such as a deletion report or certificate.
The log also helps you avoid the opposite error: deleting something that should have been kept. If a dispute or audit appears, you can show that deletion followed a documented rule at a documented time, which is far better than saying you cleaned up the drive last spring.
Holds and retention come before deletion
Secure deletion is the end of the process, not the start. Before destroying anything, check whether a retention rule or legal hold requires you to keep it. Deleting records you were obliged to keep can cause as much harm as keeping data you should have removed.
Put the checks in the same order every time: retention schedule, active holds, then deletion. If you are building that structure now, start with the guide to a document retention schedule, and use the findings of a cloud storage security risks review to see where leftover copies are most likely to appear.
Common mistakes to avoid
- Assuming empty the trash is enough. It removes one copy of the data in one place.
- Forgetting backups and snapshots. They keep what you removed.
- Ignoring synced devices. One laptop that was offline can hold the whole folder.
- Relying on a factory reset for sensitive devices without checking the maker's guidance.
- Losing the key and the data separately. Cryptographic erase fails if a recovery key was kept elsewhere.
- Deleting before checking holds. The result can be a compliance problem.
- Not writing anything down. Without a log you cannot show what you did.
- Treating all data the same. Sensitivity should set the method.
Frequently Asked Questions
Usually not for sensitive data. Emptying the bin removes the file from normal view, but in many systems the content can remain on the storage until it is overwritten, and other copies may exist in backups, synced devices, email and cloud trash. For confidential files, use a sanitization method suited to the storage and check every location where copies could live.
Sources and Further Reading
This guide draws on the pages below. Vendor documentation and standards change, so check the current version before relying on a detail.
- NIST SP 800-88 Rev. 2 Guidelines for Media Sanitization (csrc.nist.gov)
- NIST Glossary: Cryptographic Erase Definition (csrc.nist.gov)
- NIST Glossary: Clear Media Sanitization Definition (csrc.nist.gov)
- Google Workspace Updates: Drive Trash Auto-Delete (workspaceupdates.googleblog.com)
- Microsoft Learn: Retention for SharePoint and OneDrive (learn.microsoft.com)
Related Articles

About the Author: Mohamed Siraj
Mohamed is the founder of SecureTools.live. He leads the team in building secure, compliant, and privacy-first directory tooling for software teams, finance professionals, and enterprise security leaders worldwide.