Do this by opening the Start menu, searching for “Command Prompt”, and clicking “Run as Administrator” on the right of the search results. To use this command, open a Command Prompt window. You can’t restore your folders once they have been deleted with this command. Warning: Know that the rmdir command removes folders without moving them to the Recycle Bin. This command helps you delete folders as well as their subfolders and the files inside them. To delete folders (also called directories) on your PC, use Windows’ built-in rmdir command. Here’s what the above command looks like when paired with the /p parameter: del /p "C:\Users\username\Desktop\MyFile.txt"ĭelete Folders with Command Prompt on Windows 10 Similarly, you can add the /f parameter to the command to force delete your read-only files. To customize your deletion process, you can use a couple of parameters that the del command offers.įor instance, you can add the /p parameter to the command to get Command Prompt to ask for your confirmation before deleting a file. For example, to delete a file named “MyFile.txt” placed on your desktop, use the following command replacing username with your own username: del "C:\Users\username\Desktop\MyFile.txt"Īnd your specified file is now deleted from your storage!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |