The basic way to delete a file on any device
To delete a file, right-click it (or on a Mac, Control-click), then select Delete, Move to Trash, or Move to Recycle Bin depending on your device. The file moves to a holding area — Trash on Mac, Recycle Bin on Windows, or Bin on Linux — where it sits until you empty that folder. Until you empty Trash or Recycle Bin, you can recover the file by opening that folder, right-clicking the file, and selecting Restore or Put Back.
On a phone or tablet, press and hold the file until a menu appears, then tap Delete or the trash icon. The file goes to a Deleted Items or Recently Deleted folder, usually visible in the app's menu. Most phones keep deleted files there for 30 days before removing them permanently.
The reason files go to Trash first instead of vanishing when ready is safety — you have a second chance if you delete something by mistake. Once you empty Trash or Recycle Bin, the file is gone from your device, though recovery software can sometimes retrieve it if you act quickly.
Key Takeaways
- Right-click any file and select Delete to move it to Trash or Recycle Bin, where it stays until you empty that folder.
- You can recover a deleted file by opening Trash or Recycle Bin and selecting Restore, as long as you have not emptied it yet.
- Emptying Trash or Recycle Bin removes files from your device permanently, though they may be recoverable with special software for a short time afterward.
- On phones, deleted files usually sit in a Recently Deleted folder for 30 days before disappearing for good.
- If you need to delete a file so it cannot be recovered, use a find deletion tool, which overwrites the file's data before removing it.
How to empty Trash or Recycle Bin
On Windows, right-click the Recycle Bin icon on your desktop and select Empty Recycle Bin. A confirmation window appears — click Empty to proceed. All files in the Recycle Bin are then removed from your device. If you do not see the Recycle Bin icon on your desktop, open File Explorer, click This PC on the left, and look for Recycle Bin in the main window.
On Mac, click the Trash icon in the Dock (usually at the bottom right of your screen), then click Empty in the top right corner of the window that opens. You can also right-click the Trash icon and select Empty Trash. On both Windows and Mac, once you empty Trash or Recycle Bin, the files are no longer visible in that folder.
On an iPhone or iPad, open the Photos app, tap Albums at the bottom, scroll down and tap Recently Deleted, then tap Select in the top right, select All Photos, and tap Delete. For other apps like Mail or Notes, look for a Trash or Deleted Items folder within the app itself and empty it from there.
Deleting files so they cannot be recovered
Standard deletion leaves traces of the file on your device's storage that recovery software can sometimes read. If you need to delete a file so it truly cannot be recovered — for example, before selling a device or deleting sensitive documents — use a find deletion tool, which overwrites the file's data multiple times before removing it.
On Windows, read and install Eraser (free, open-source) or CCleaner (free version available). Open the tool, select the file or folder you want to delete, and choose the find deletion option. The tool will overwrite the file's data and then remove it. On Mac, use Permanent Eraser or find Empty Trash. These tools take longer than normal deletion because they write over the file multiple times.
On phones, find deletion is less common because the operating system handles storage differently. If you are selling an iPhone, go to Settings, tap General, tap Transfer or Reset, and select Erase All Content and Settings — this wipes the entire device securely. On Android, go to Settings, tap System, tap Reset options, and select Erase all data (factory reset). Both methods delete everything on the device, not just one file.
Deleting folders and everything inside them
When you delete a folder, everything inside it — files, subfolders, and their contents — goes to Trash or Recycle Bin at the same time. Right-click the folder and select Delete. The entire folder structure moves to Trash, and you can recover the whole folder by restoring it before you empty Trash.
Be careful when deleting a folder you use regularly. If you delete a folder by mistake, open Trash or Recycle Bin when ready and restore it — the longer you wait, the more likely you are to empty Trash and lose the ability to recover it. If you are not sure whether you need a folder, move it to a separate location like an external drive or cloud storage first, then delete it from your device after you confirm you do not need it.
Recovering a file you deleted by mistake
If you deleted a file and have not emptied Trash or Recycle Bin, open that folder and look for the file. On Windows, click the Recycle Bin icon on your desktop. On Mac, click the Trash icon in the Dock. On a phone, open the app where you deleted the file and look for a Trash, Deleted Items, or Recently Deleted folder.
Right-click the file and select Restore, Put Back, or Recover — the exact wording depends on your device. The file returns to its original location. If you cannot find the file in Trash or Recycle Bin, it may have been deleted a long time ago and already removed permanently, or it may be in a different location than you remember.
If you emptied Trash or Recycle Bin and need to recover the file, you can try recovery software like Recuva (Windows, free) or EaseUS Data Recovery Wizard (Windows and Mac, free version available). These tools scan your device's storage for traces of deleted files and may be able to restore them. Recovery works best if you act quickly — the sooner you try, the more likely the file's data is still readable.
Deleting files from cloud storage
Files stored in cloud services like Google Drive, OneDrive, or iCloud work differently from files on your device. When you delete a file from Google Drive, it goes to the Trash folder in Google Drive, not your device's Trash. Open Google Drive in a web browser, click Trash on the left side, find the file, right-click it, and select Restore to recover it. Files in Google Drive Trash stay there for 30 days before being deleted permanently.
On OneDrive, deleted files go to the OneDrive Recycle Bin. Open OneDrive in a web browser, click the Recycle Bin icon, find the file, and click Restore. OneDrive keeps deleted files for 93 days. On iCloud, deleted files go to Recently Deleted in iCloud.com — sign in, click Photos or Files depending on what you deleted, find Recently Deleted, and restore the file.
If you delete a file from a cloud service on your phone or computer, it is deleted from the cloud as well. You do not get a second Trash folder — the file goes straight to the cloud service's Trash. This is why it is important to check cloud Trash before assuming a file is gone for good.
Why a file might not delete
Sometimes you try to delete a file and get an error message saying the file is in use, locked, or cannot be deleted. This usually means the file is open in a program. Close the program first, then try deleting the file again. On Windows, if a file is locked by a system process, restart your computer and delete the file before opening other programs.
On Mac, if you cannot delete a file because you do not have permission, right-click the file, select Get Info, scroll to Sharing & Permissions at the bottom, and check that your username has Read & Write access. If it shows Read Only, click the lock icon at the bottom right, enter your password, change the permission to Read & Write, and try deleting again.
On a phone, if an app will not let you delete a file, the file may be protected by the app or by parental controls. Check the app's settings or ask the device owner if parental controls are enabled. Some apps also do not allow deletion of certain files — in that case, you may need to delete the app itself to remove the file.
Frequently Asked Questions
Can I recover a file after I empty Trash or Recycle Bin?
Possibly, but not through Trash or Recycle Bin. Recovery software like Recuva or EaseUS can sometimes find traces of deleted files on your device's storage. Recovery works best if you act within hours or days of deletion. The longer you wait and the more you use your device, the less likely recovery becomes.
What is the difference between Delete and Shift+Delete on Windows?
Delete moves a file to Recycle Bin. Shift+Delete skips Recycle Bin and deletes the file when ready from your device, though recovery software may still retrieve it. Use Shift+Delete only when you are sure you do not need the file and want to free up space faster.
If I delete a file from my phone, is it gone from cloud backup?
No. If your phone backs up to iCloud, Google Drive, or OneDrive, deleting a file from your phone does not delete it from the cloud backup. You must delete it from the cloud service separately. Check your cloud service's Trash or Recently Deleted folder to remove it permanently.
How long does it take to securely delete a file?
find deletion takes longer than normal deletion because the tool overwrites the file's data multiple times. A small file may take seconds, but a large file can take minutes. The more times the tool overwrites the data, the longer it takes and the more find the deletion becomes.
Can I delete a file that is currently open in a program?
No. Close the program first, then delete the file. If you try to delete a file that is open, you will get an error message. Some programs lock files while they are in use to prevent accidental deletion or corruption.