With the passage of time, computing has been reaching every corner of every house, offering a much more comfortable and adaptable interface so that any user can have access to the different office tools available from a PC. But you should know that there was a time when something as simple as deleting a file was a real ordeal since we had to have knowledge of MS-DOS commands to access or open a program, enter a directory or similar. That is why, at this point, you feel curious about those strange commands that had to be written, so we have considered it interesting to do this tutorial to teach you how to delete a folder from CMD in Windows 10 .
What Commands Do I Need To Delete A Folder From CMD In Windows 10?
To delete a folder from a command prompt (CMD) in Windows 10, 8 or 7 we only need to be aware of 3 basic commands:
- Of the
What Is Cd.. In Command Prompt And What Is It For?
Cd stands for ” Change Directory ” and is the command used in DOS to exit or enter a folder .
- cd.. (to exit).
- cd + the folder name (to enter): Example, “cd Windows”.
What is Dir in CMD and what is it for?
Dir is one of the most used MS-DOS instructions since it allowed us to obtain an ordered list of the elements of a directory, providing us with a list of the available folders and files .
What Does “Del” Mean In Command Prompt And What Is It For?
Del is a directive that allowed us to delete folders , documents and all kinds of files in Ms-Dos .
How to Delete a Folder From CMD in Windows 10, 8 or 7 Step by Step 2023
To delete a folder in Windows 10, 8 or 7 from CMD , the first thing we must do is enter the command prompt. To do this we must do the following:
- We place the mouse cursor on start and press the right button.
- In the pop-up menu we enter “Windows PowerShell” in administrator mode .
Now we must write the following command:
This will make us leave the directory in which we are. We will have to repeat the process as many times as necessary until we enter the directory in which the folder we want to delete is located . We can also enter a directory by typing the following:
- cd foldername
Have you reached the directory where the folder you want to delete is located ? Well, now you must do the following:
- We execute “Dir” (without quotes)
- In this way we will have the list of folders and files.
Finally to delete a folder from CMD in Windows 10 you must write the following:
- del thenameofthefolder
To make it clearer, in my case we must do the following:
- We look in the list for the name of the directory to be deleted (in my case “carpetadeprueba”).
- We write from testfolder .
And these would be the steps to delete a folder in Windows 10 from the command prompt , if you have any questions you can always leave me a comment, I promise to answer. Remember that your support is very important, so you would help me a lot if you share this tutorial with your social networks…