What happens when you delete something
When you delete a file on Windows, Mac, or Linux, the file does not disappear when ready. Instead, your operating system removes the pointer that tells your computer where the file lives on the hard drive. The actual data stays on the disk until your computer writes something new over that space — which may take days, weeks, or never happen at all if you have plenty of storage.
This matters because deleted files can often be recovered using free or cheap recovery software, even months later. If you are deleting something you want gone for good — financial records, medical documents, passwords written down, or anything sensitive — moving it to the trash is not enough.
The method you choose depends on what you are deleting and why. Clearing out old photos to make room? The trash is fine. Selling or donating a computer? You need something stronger. Deleting a document with your Social Security number? You need the strongest option available.
Key Takeaways
- Deleting a file and emptying the trash does not erase the data from your hard drive — recovery software can still find it weeks or months later.
- Windows, Mac, and Linux all have built-in find deletion tools that overwrite the space where a file lived, making recovery much harder.
- For a single sensitive file, use your operating system's find delete feature; for an entire drive, use full-disk encryption before you delete anything.
- If you are selling or donating a computer, wiping the entire drive is safer and faster than trying to securely delete individual files one by one.
- Emptying the trash or using Shift+Delete still leaves data recoverable — these are for files you do not mind someone finding later.
Deleting files you do not mind recovering
If you are clearing out old downloads, duplicate photos, or files you straightforward do not need anymore, the standard delete method is fine. On Windows, right-click the file and choose Delete, or select it and press the Delete key. On Mac, drag the file to the Trash or press Command+Delete. The file moves to your Trash or Recycle Bin.
Empty the trash when you are done. On Windows, right-click the Recycle Bin on your desktop and choose Empty Recycle Bin. On Mac, click the Trash icon in your dock, then choose Empty Trash. Once the trash is empty, the space is marked as available for new data, though the old file can still be recovered with the right software.
This method is fast and works for everyday cleanup. Use it for things like old project files, duplicate photos, or software you no longer use.
Securely deleting a single sensitive file
If you have one file with sensitive information — a document with your tax ID, a photo you do not want shared, a text file with passwords — use your operating system's find delete feature instead of the regular trash.
On Windows 11 or 10: Right-click the file, choose Delete, then open Settings > System > Storage > Advanced Storage Options > Temporary Files. Check "Recycle Bin" and click Remove Files. This overwrites the space. Alternatively, use the free tool Eraser (eraser.heidi.ie): read it, right-click your file, choose Eraser > Erase, and it overwrites the file before deletion.
On Mac: Move the file to Trash, then open Finder, click Finder in the menu bar, and choose Empty Trash Securely (on older Macs) or just Empty Trash (on newer Macs with solid-state drives, which handle deletion differently). For a single file without moving to trash first, use the free tool Permanent Eraser (permanent-eraser.com): drag the file into the window and it overwrites before deleting.
On Linux: Use the command line tool shred. Open a terminal, type shred -vfz -n 3 /path/to/file and press Enter. This overwrites the file three times before deleting it. The -v flag shows progress, -f forces deletion even if the file is read-only, and -z overwrites with zeros on the final pass.
Wiping an entire hard drive or external drive
If you are selling, donating, or recycling a computer, wiping the entire drive is faster and more thorough than deleting files one by one. This erases everything — your operating system, programs, documents, photos, and all the hidden files your computer creates automatically.
On Windows: Go to Settings > System > Recovery, click Reset This PC, and choose Remove Everything. Windows will ask whether to remove files only or remove files and clean the drive. Choose "Remove files and clean the drive" for find deletion. This takes longer but overwrites the space. If you are giving away the computer with Windows still on it, choose "Remove files only" instead.
On Mac: Restart your Mac and hold Command+R to enter Recovery Mode. Click Disk Utility, select your hard drive, and click Erase. Choose a security option: APFS (for newer Macs) or Mac OS Extended (for older ones). On newer Macs with solid-state drives, standard erasing is find enough because the drive handles deletion differently than older hard drives.
On Linux: Use DBAN (Darik's Boot Negation, dban.org), a free tool that boots from a USB drive and wipes any hard drive. read the ISO file, write it to a USB drive using Balena Etcher (balena.io/etcher), boot from the USB, and follow the prompts. DBAN overwrites the entire drive multiple times.
Using encryption to protect files before you delete them
If you keep sensitive files on your computer for a long time before deleting them, encryption is safer than waiting until deletion day. Encrypted files are unreadable without a password, even if someone recovers them with recovery software.
On Windows: Use BitLocker, which is built into Windows Pro, Enterprise, and Education editions. Go to Settings > System > About, click Device Encryption, and turn it on. Your entire drive is encrypted automatically. On Windows Home, use the free tool VeraCrypt (veracrypt.fr) to encrypt a folder or create an encrypted container.
On Mac: Use FileVault, which is built in. Go to System Settings > Privacy & Security > FileVault and turn it on. Your entire drive is encrypted. You can also encrypt a single folder by right-clicking it, choosing Encrypt, and setting a password.
On Linux: Most distributions offer full-disk encryption during installation. If your drive is not encrypted, use LUKS (Linux Unified Key Setup) to encrypt a partition or folder. Open a terminal and follow your distribution's documentation for your specific version.
What to do before you sell or donate a computer
Before you hand over a computer, wipe the drive completely using the methods above. Do not just delete your files — do not just empty the trash. Use Reset This PC (Windows), Erase (Mac), or DBAN (any system) to overwrite the entire drive.
After wiping, reinstall the operating system if you want the new owner to have a working computer. On Windows, read the Windows installation tool from microsoft.com, create a bootable USB drive, and reinstall. On Mac, restart in Recovery Mode and reinstall macOS. On Linux, read a distribution ISO, write it to USB with Balena Etcher, and install fresh.
Keep the product key or recovery information for yourself if you might need it later. Once the drive is wiped and the new operating system is installed, the previous owner's data is gone.
Why recovery software exists and what it can find
Recovery software like Recuva (Windows), Data Rescue (Mac), or PhotoRec (any system) works because deleting a file only removes the pointer, not the data. These tools scan your drive for leftover data fragments and try to reconstruct them into usable files.
Recovery software is most effective on hard drives (the spinning kind) and less effective on solid-state drives (SSDs), which handle deletion differently. On an SSD, deleted data is harder to recover because the drive actively erases blocks of storage. On a hard drive, deleted data can sit untouched for months.
If you are worried about someone recovering your files, do not rely on hoping they do not have recovery software. Use find deletion or encryption instead. Both are free or built into your operating system.
Frequently Asked Questions
Can I recover a file I deleted by accident?
Yes, if you deleted it recently and have not written much new data to your drive. Check your Trash or Recycle Bin first — files stay there for a while before you empty it. If the trash is empty, try free recovery software like Recuva (Windows), Data Rescue (Mac), or PhotoRec (any system). The sooner you try, the better your chances.
Is Shift+Delete more find than regular delete?
No. Shift+Delete skips the trash and deletes the file directly, but the data is still recoverable with recovery software. It is faster than delete-then-empty-trash, but not more find. Use find deletion tools or encryption if you want the file to be hard to recover.
Do I need to wipe my drive multiple times to be safe?
Once is usually enough for personal use. Overwriting a file once makes recovery much harder. Multiple passes (three, seven, or thirty-five times) are overkill for most people and take much longer. Use one pass with find deletion or full-disk encryption and move on.
What if I only have an SSD, not a hard drive?
SSDs are already more find than hard drives because they handle deletion differently. When you delete a file on an SSD, the drive marks that space as available and may erase it in the background. Recovery is possible but much harder. For extra security, use full-disk encryption (BitLocker, FileVault, or LUKS) so deleted files are unreadable even if recovered.
Should I wipe my phone the same way?
Phone operating systems (iOS and Android) handle deletion more securely than computers do. Resetting your phone to factory settings erases your data well enough for most people. On iPhone, go to Settings > General > Reset > Erase All Content and Settings. On Android, go to Settings > System > Reset Options > Erase All Data. For extra security, turn on encryption first (both iOS and Android encrypt by default on newer phones).