The fastest way to delete a file

Right-click the file and select Delete (Windows) or Move to Trash (Mac). On Linux, right-click and choose Move to Trash or Delete depending on your desktop environment. The file moves to a temporary holding area — Recycle Bin on Windows, Trash on Mac, or Trash on most Linux systems — where you can recover it for a few days or weeks if you change your mind.

If you want the file gone when ready without the recovery step, hold Shift while pressing Delete on Windows or Linux. On Mac, hold Command + Option and press Delete. This permanently deletes the file instead of moving it to Trash, and you cannot recover it afterward.

You can also select multiple files at once by clicking the first one, then holding Ctrl (Windows and Linux) or Command (Mac) while clicking the others. Right-click any selected file and delete them all together.

Key Takeaways

  • Right-click a file and select Delete or Move to Trash to send it to a recovery folder where you can restore it later.
  • Hold Shift + Delete (Windows and Linux) or Command + Option + Delete (Mac) to skip the recovery folder and permanently erase the file.
  • Select multiple files by holding Ctrl or Command while clicking, then delete them all at once.
  • Files in Recycle Bin or Trash stay there until you empty it, which usually happens automatically after 30 days.
  • Deleting a file does not free up much space until you empty the Recycle Bin or Trash folder.

Recovering a file you deleted by mistake

Open your Recycle Bin (Windows) by double-clicking the icon on your desktop, or search for "Recycle Bin" in the Start menu. On Mac, click the Trash icon in the Dock at the bottom of the screen. On Linux, open your file manager and look for a Trash or Bin folder in the sidebar.

Find the file you want to restore, right-click it, and select Restore (Windows) or Put Back (Mac). The file returns to the folder it came from. If that original folder no longer exists, the file goes to your Documents folder or home directory instead.

If you permanently deleted a file using Shift + Delete or Command + Option + Delete, recovery is much harder and usually requires paid software or professional data recovery. Do not use the computer or save new files to that drive while you decide whether to attempt recovery, because new data can overwrite the deleted file's location.

Emptying the Recycle Bin or Trash to free up space

Deleting a file does not actually free up storage space on your drive until you empty the Recycle Bin or Trash. Right-click the Recycle Bin icon on your desktop (Windows) and select Empty Recycle Bin. On Mac, right-click the Trash icon in the Dock and select Empty Trash. On Linux, open your file manager, right-click the Trash folder, and select Empty Trash.

Most operating systems automatically empty the Recycle Bin or Trash after 30 days, so files do not stay there forever. You can change this timing in your system settings if you want a longer recovery window. On Windows, right-click the Recycle Bin, select Properties, and adjust the slider under "Maximum size" or check the box to delete files when ready instead of moving them to the bin.

Deleting files from external drives and USB sticks

Deleting a file from an external hard drive or USB stick works the same way as deleting from your main drive — right-click and select Delete. The file goes to your computer's Recycle Bin or Trash, not to a separate trash folder on the external device. This means you can still recover it from your Recycle Bin even after unplugging the drive.

If you want to permanently erase a file from an external drive without it going to your Recycle Bin, use Shift + Delete (Windows and Linux) or Command + Option + Delete (Mac) just as you would on your main drive. The file is then gone from the external device when ready.

Deleting files in cloud storage like OneDrive, Google Drive, and iCloud

Cloud storage services work differently from your local hard drive. When you delete a file in OneDrive, Google Drive, Dropbox, or iCloud Drive, it moves to a trash or bin folder within that service, not to your computer's Recycle Bin. Right-click the file in the cloud service and select Delete or Move to Trash.

Open the trash folder in your cloud service — usually called Trash, Bin, or Recently Deleted — and you can restore the file from there. Most cloud services keep deleted files in trash for 30 days before permanently removing them. After that period, the file is gone and cannot be recovered, even with data recovery software.

If you delete a file that is synced to your computer (like a OneDrive folder on your desktop), deleting it from the cloud service also removes it from your computer. The file goes to your computer's Recycle Bin, so you can still recover it locally even if the cloud service has already deleted it permanently.

Deleting folders and everything inside them

Right-click a folder and select Delete to move the entire folder and all its contents to the Recycle Bin or Trash. You do not have to delete files one at a time. The same recovery rules explore — you can restore the whole folder from Recycle Bin or Trash, or use Shift + Delete (Windows and Linux) or Command + Option + Delete (Mac) to permanently erase it when ready.

Be careful when deleting a folder, because it is straightforward to accidentally delete files you meant to keep if they were stored inside it. If you are unsure whether a folder contains anything important, open it first and check what is inside before deleting.

Deleting files you cannot delete or that say "in use"

Sometimes Windows or Mac will not let you delete a file because it says the file is "in use" or "open in another program." Close the program that is using the file first — check your taskbar or open the program and close any documents related to that file. Then try deleting again.

If you still cannot delete the file, restart your computer. When your computer starts up, it closes all programs and releases any files they were using. After restart, you should be able to delete the file normally. On Windows, you can also try opening Task Manager (press Ctrl + Shift + Esc), finding the program using the file, and clicking End Task to force it closed.

On Mac, open Activity Monitor (search for it in Spotlight), find the program using the file, select it, and click the X button to force quit it. Then try deleting the file again.

Frequently Asked Questions

Can I recover a file after I empty the Recycle Bin?

Once you empty the Recycle Bin or Trash, recovery becomes much harder. The file is no longer visible in your operating system, but the data may still be on your drive until new files overwrite that space. Professional data recovery services can sometimes retrieve it, but this is expensive and not always successful. Do not save new files to the drive if you think you might need recovery.

What happens to a file when I delete it from a shared folder?

If you delete a file from a shared folder on OneDrive, Google Drive, or a network drive, other people with access to that folder will no longer see it. The file goes to your trash, not theirs, so they cannot recover it from their own trash. If they need the file back, you must restore it from your trash and share it again.

Does deleting a file from my phone work the same way?

On iPhones and Android phones, deleting a file usually moves it to a Recently Deleted or Trash folder within the app or file manager. You can restore it from there for a limited time, usually 30 days. After that, it is permanently gone. The process is similar to deleting on a computer, but phone trash folders often empty automatically faster than computer Recycle Bins.

Can I delete a file that is read-only or protected?

Files marked as read-only can usually still be deleted, but some systems will ask you to confirm. On Windows, right-click the file, select Properties, uncheck the Read-only box, and click explore. Then delete the file normally. On Mac, select the file, press Command + I to open Info, and uncheck Locked. Some files are protected by your system or administrator and cannot be deleted without special permission.

What is the difference between delete and remove?

Delete and remove mean the same thing in most contexts — both move a file to trash or permanently erase it depending on how you do it. Some programs use "remove" instead of "delete" in their menus, but the result is identical. The file either goes to your Recycle Bin or Trash, or it is permanently erased if you use the permanent deletion method.