PDF download Download Article PDF download Download Article

Deletion is a process that makes files inaccessible to most users, including yourself. Deleting files is very simple on a computer.

Method 1
Method 1 of 4:

Using Simple Methods on Windows

PDF download Download Article
  1. Browse File Explorer, and once you find the file to be deleted, right click, and click on "Delete", or press the Delete key, or drag the file to the Recycle Bin.
    • Provide confirmation if needed.
    • Hold Shift to permanently delete the file.
  2. In the Recycle Bin, right-click, choose "Delete", and confirm that you want to permanently delete the file.
    • To empty the Recycle Bin, right-click on the Recycle Bin, choose "Empty Recycle Bin", and provide confirmation, or under Recycle Bin tools, choose "Empty Recycle Bin".
  3. Advertisement
Method 2
Method 2 of 4:

Using Command Prompt on Windows

PDF download Download Article
  1. This method deletes the file permanently, so be careful with it.
  2. Press Win+X. Then choose "Command Prompt".
  3. del/ erase filepath. This will permanently delete the file. If you choose to delete a folder, type -s at the end of it to delete all of the subdirectories.
    • Be careful what you delete; running this line with C:\ as the filepath will wipe your entire C drive (the drive with Windows on it).
  4. Advertisement
Method 3
Method 3 of 4:

Using Simple Methods on Mac/Linux

PDF download Download Article
  1. Browse using the built-in Finder.
  2. Then click "Move to Trash".
  3. Right-click on the Trash icon, then choose "Empty Trash". This will permanently delete all of the files moved to it.
  4. Advertisement
Method 4
Method 4 of 4:

Using Terminal on Mac/Linux

PDF download Download Article
  1. This method deletes the file permanently, so be careful with it.
  2. Find it on your dock, or search for the app name.
  3. rm filepath. This will immediately delete the file permanently.
    • If you want to delete a folder, use rm -rf filepath instead. This will delete all of the subdirectories as well.
    • Use sudo to delete files you do not have permission to delete. Be very careful what you enter there, as it only takes eight bytes of code to wipe your whole hard drive.
  4. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

  • If you accidentally deleted a file, you can restore the file from the Recycle Bin/Trash/Recently Deleted. Go there, select the file, and choose "Restore" or "Recover".
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

  • In some cases, file deletion is permanent. Be careful with what you delete on what device.
  • Beware of internet trolls that tell you to delete crucial files for your computer. Everything outside of the Users and Program Files/Applications folder are important files needed to keep your operating system running. Don't delete System32, and don't delete your hard drive.
Advertisement

You Might Also Like

Shut Down Your PC with a Shortcut Key6 Easy Ways to Use Shortcut Keys to Shut Down a Windows PC
Check Mouse Sensitivity (Dpi) on PC or Mac Check Your Mouse DPI on Windows & Mac
Change Your Desktop Background in Windows5 Quick Ways to Change Your Desktop Wallpaper on Windows
Bring an Off Screen Window Back on WindowsBring an Off Screen Window Back on Windows
Make a Zip File6 Simple Ways to Create a .ZIP File from Files or Folders
Copy and Paste Copy and Paste on Any Device
Paste with the Keyboard4 Easy Ways to Paste Text Using Keyboard Shortcuts
Automatically Shut Down Your Computer at a Specified TimeAutomatically Shut Down Your Computer at a Specified Time
Change a File ExtensionChange a File Extension
Blender How to Merge Objects3 Easy Ways to Merge Objects in Blender: Step-by-Step
Change the Icon for an Exe File3 Easy Ways to Customize EXE Program Icons in Windows
Copy and Paste a LinkCopy and Paste a Link
Refresh a PageHow To Refresh a Webpage: Desktop & Mobile
Select AllSelect All
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 43,445 times.
How helpful is this?
Co-authors: 3
Updated: January 26, 2019
Views: 43,445
Categories: Basic Computer Skills
Article SummaryX

1. Click and hold the file.
2. Drag and drop the file over the Trash/Recycle Bin.
3. Empty the Trash/Recycle Bin by right-clicking on it and choosing Empty Recycle Bin or Empty Trash.

Did this summary help you?

Thanks to all authors for creating a page that has been read 43,445 times.

Is this article up to date?

Advertisement