How.com.vn 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 37,206 times.
Learn more...
Deletion is a process that makes files inaccessible to most users, including yourself. Deleting files is very simple on a computer.
Steps
- 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.
- 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".
- Know the file you want to permanently delete. This method deletes the file permanently, so be careful with it.
- Open Command Prompt. Press ⊞ Win+X. Then choose "Command Prompt".
- 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).
- Know the file you want to permanently delete. This method deletes the file permanently, so be careful with it.
- Open Terminal. Find it on your dock, or search for the app name.
- 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.
Expert Q&A
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
Warnings
- In some cases, file deletion is permanent. Be careful with what you delete on what device.Thanks
- 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
About This Article
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.
Is this article up to date?
⚠️ Disclaimer:
Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.
- - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
- - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
- - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
- - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.