How To Delete Directory In Windows Command Prompt
In some cases, Windows is not allowing some users to delete their files or folders. You tin can apply the command prompt to delete a file or a binder if you run across such a problem. In this article, we will prove you how exactly you tin can utilize this method to delete files and folders.
- How to delete files on Windows x with CMD
- How to delete folders on Windows ten with CMD
- Forcefulness Uninstall
Deleting files on Windows ten with command prompt
The born del command can help you delete files on Windows 10. You have to bespeak out the specific path to this file on your PC.
To employ this method do the following:
- Open the Starting time Menu and in the search bar type "cmd". Right-click on the result and select "Run as Administrator"
- Type in the field the following control where PATH will be replaced with the total path to the file you lot want to delete.
del path
- After that press Enter
Lets' come across this instance to clarify the whole process:
Yous desire to delete a file called Info.txt that is located on your desktop. Use the following control in the Command Prompt where you replace username with your own username:
Del "C:\Users\username\Desktop\Info.txt"
After you enter this control the file volition exist deleted from the Desktop.
There are several commands that yous can use to alter a bit the del command.
For instance, you can add the /p parameter to the command to become Command Prompt to be asked for confirmation earlier deleting a file.
You tin can besides add the /f parameter to forcefulness delete a read-simply file.
You can also employ Revo Uninstallers' force uninstall feature if you have problem removing stubborn programs.
To delete folders in Windows x with CMD yous have to use the rmdir command
This command will remove all folders including the subfolders and files in them.
To employ this command practice the post-obit:
- Open the Offset Bill of fare and in the search bar blazon "cmd". Right-click on the issue and select "Run as Ambassador"
- Blazon in the field the following command where PATH volition be replaced with the total path to the file yous want to delete.
rmdir PATH
- Press Enter to stop the process
For case, to delete a folder named "Info" on your desktop, use the post-obit command where you will replace username with your ain username:
rmdir "C:\Users\username\Desktop\Info"
Later you press Enter the folder named "Info" on your desktop volition exist deleted.
If you desire to delete all the files and subfolders in the folder y'all want to delete, add the /s parameter. This volition ensure that the folder is removed including the subfolders and files in it.
Conclusion
Equally you've noticed, commands to delete files and folders in Windows x tin be pretty handy if you have trouble deleting them the regular style.
Source: https://www.revouninstaller.com/blog/delete-files-and-folders-with-command-prompt-windows-10/
Posted by: rosadoanxich.blogspot.com

0 Response to "How To Delete Directory In Windows Command Prompt"
Post a Comment