Delete files and folders using Command Prompt in Windows 10

There are times when you might find it difficult to delete folders or files in File Explorer and it could be due to many reasons. One of these reasons can be attributed to the failure that can lock down the folders or files which prevents you from deleting them. In this kind of situation, you can utilize the Command Prompt to delete the folders, sub-folders, and files on your computer, and in this post, you will be guided on how exactly you can do that.

Before you proceed, keep in mind that when you use the Command Prompt incorrectly, it might affect your computer and render it inoperable, thus, you must be extra careful when executing the steps given below and it would also be better if you create a System Restore Point. After that, refer to the following instructions.

Step 1: First, in the Start Search, type “command prompt” in the field and from the search results, right-click on Command Prompt and then select the “Run as administrator” option to open Command Prompt with admin privileges.

Step 2: After opening Command Prompt as admin, navigate to the folder where the file you want to delete is located. Note that you have to execute the “cd” or the change directory command.

Step 3: Next, execute the following command in Command Prompt:

DEL /F /A <file path with extension>

Note: In the given command, “/F” is the force delete command, while “/A” is the command that selects the files with the ready for archiving attribute.

Step 4: After that, go to the location where you can find the folder you want to delete by using the “cd” command again. And then execute the following command right after:

RD /S <folder path>

Note: In the given command, “RD” is the command that removes the folder from the directory, while “/S” removes all of its sub-folders and files. On the other hand, if you also use the “/Q” parameter, you won’t see the “Y/N” confirmation but if you didn’t use it, then simply tap the Y button to proceed.

Congratulations, you have just Deleted files and folders using Command Prompt in Windows 10 all by yourself. If you would like to read more helpful articles and tips about various software and hardware visit errortools.com daily.

Now that’s how you Delete files and folders using Command Prompt in Windows 10 on a computer. On the other hand, if your computer is going through some system-related issues that have to get fixed, there is a one-click solution known as Restoro you could check out to resolve them.

This program is a useful tool that could repair corrupted registries and optimize your PC’s overall performance. Aside from that, it also cleans out your computer for any junk or corrupted files that help you eliminate any unwanted files from your system. This is basically a solution that’s within your grasp with just a click. It’s easy to use as it is user-friendly. For a complete set of instructions in downloading and using it, refer to the steps below

Perform a full system scan using Restoro. To do so, follow the instructions below.

  1. Download and install Restoro from the official site.
  2. Once the installation process is completed, run Restoro to perform a full system scan.
    restoro application screen
  3. After the scan is completed click the “Start Repair” button.
    restoro application screen
Error tools logo

PRIVACY     TERMS

Copyright © 2021, ErrorTools. All Rights Reserved Trademarks: Microsoft Windows logos are registered trademarks of Microsoft. Disclaimer: ErrorTools.com is not affiliated with Microsoft, nor claim direct affiliation. The information on this page is provided for information purposes only.

Log in with your credentials

Forgot your details?