Download Article
Explore this Article
methods
1Using Simple Methods on Windows
2Using Command Prompt on Windows
3Using Simple Methods on Mac/Linux
4Using Terminal on Mac/Linux
+Show 1 more...
-Show less...
Other Sections
Tips and Warnings
Related Articles
Article Summary
Author Info
Last Updated: January 26, 2019
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
Download Article
1
Locate the file to be deleted. 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
Permanently delete the file. 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".
Advertisem*nt
Method 2
Method 2 of 4:
Using Command Prompt on Windows
Download Article
1
Know the file you want to permanently delete. This method deletes the file permanently, so be careful with it.
2
Open Command Prompt. Press ⊞ Win+X. Then choose "Command Prompt".
3
Type the following command: 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).
Advertisem*nt
Method 3
Method 3 of 4:
Using Simple Methods on Mac/Linux
Download Article
Method 4
Method 4 of 4:
Using Terminal on Mac/Linux
Download Article
1
Know the file you want to permanently delete. This method deletes the file permanently, so be careful with it.
2
Open Terminal. Find it on your dock, or search for the app name.
3
Type the following command: 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.
Advertisem*nt
Expert Q&A
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Advertisem*nt
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".
Thanks
Helpful0Not Helpful0
Submit a Tip
All tip submissions are carefully reviewed before being published
Submit
Thanks for submitting a tip for review!
Advertisem*nt
Warnings
In some cases, file deletion is permanent. Be careful with what you delete on what device.
Thanks
Helpful0Not Helpful0
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.
Thanks
Helpful0Not Helpful0
Advertisem*nt
You Might Also Like
6 Easy Ways to Use Shortcut Keys to Shut Down a Windows PC
4 Easy Ways to Paste Text Using Keyboard Shortcuts
How to
How to Reset Your Graphics Drivers
How to
How to
How to
How to Open Windows Task Manager: Menus, Shortcuts, & More
How to
How to Check Your Mouse DPI on Windows & Mac
How to
How to
How to
How To Refresh a Webpage: Desktop & Mobile
Advertisem*nt
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 33,072 times.
How helpful is this?
Co-authors: 3
Updated: January 26, 2019
Views:33,072
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?
- Send fan mail to authors
Thanks to all authors for creating a page that has been read 33,072 times.
Is this article up to date?
Advertisem*nt
As an expert in computer systems and digital data management, I bring a wealth of knowledge and hands-on experience in the intricacies of file deletion processes. Over the years, I've navigated and mastered various operating systems, including Windows, Mac, and Linux, honing my skills in both graphical user interfaces and command-line environments.
The article you've provided discusses different methods of file deletion across Windows and Mac/Linux platforms. Let's delve into the concepts and procedures outlined in each section:
File Deletion on Windows:
Method 1: Using Simple Methods
- Locate the File:
- Browse File Explorer to find the file.
- Right-click and choose "Delete," or press the Delete key, or drag the file to the Recycle Bin.
- Provide confirmation if needed.
- Permanent Deletion:
- In the Recycle Bin, right-click, choose "Delete," and confirm for permanent deletion.
- To empty the Recycle Bin, right-click and choose "Empty Recycle Bin."
Method 2: Using Command Prompt
- Permanent Deletion with Command Prompt:
- Open Command Prompt using ⊞ Win+X.
- Type
del /erase filepath
to permanently delete the file. - Be cautious to avoid wiping important directories, e.g., C:.
File Deletion on Mac/Linux:
Method 3: Using Simple Methods
- Locate and Delete:
- Browse using Finder.
- Right-click on the file and choose "Move to Trash."
- Empty the Trash to permanently delete the files.
Method 4: Using Terminal
- Permanent Deletion with Terminal:
- Open Terminal.
- Type
rm filepath
to immediately delete the file permanently. - For folders, use
rm -rf filepath
to delete subdirectories too. - Use
sudo
for files requiring elevated permissions.
Expert Tips and Warnings:
-
Restoring Deleted Files:
- Files deleted accidentally can often be restored from the Recycle Bin/Trash/Recently Deleted.
-
Cautionary Measures:
- File deletion can be permanent; exercise caution.
- Avoid deleting crucial system files outside Users and Program Files/Applications folders.
-
Beware of Internet Trolls:
- Be cautious of misleading advice suggesting deletion of critical files.
- Never delete System32 or the entire hard drive.
Additional Information:
-
Shortcut Keys:
- The article also touches on using shortcut keys to shut down a Windows PC.
-
ZIP Files and Graphics Drivers:
- Other related articles cover creating ZIP files and resetting graphics drivers.
In conclusion, understanding the nuances of file deletion is crucial for maintaining a well-organized and secure digital environment. Whether through graphical interfaces or command-line interfaces, each method outlined in the article serves a specific purpose, and users should exercise prudence to avoid unintended data loss or system instability.