The command to forcefully delete a folder is "rd /s/q". The method of use is: first click the desktop start button and find the run option; then enter CMD in the run text box and press Enter; Finally, enter the "rd /s/q E:\acd" command on the DOS command line to forcefully delete the specified folder.
The operating environment of this article: Windows 7 system, Dell G3 computer.
First explain how to forcefully delete a folder: when deleting a folder, it cannot be deleted, and the prompt shown in the figure below appears
Then We use DOS commands to force deletion, click the desktop start button, find the run option
, click Run, enter CMD in the run text box, and press Enter.
Then in the DOS command line as shown below, enter: rd /s/q E:\acd, Note: rd /s/q is followed by forced deletion. The path and folder name of the folder
After pressing Enter, the files that could not be deleted have been successfully deleted
Let’s explain how to forcefully delete files: When I delete the file in the picture below, it prompts that the file is in use and cannot be deleted
Then I use the DOS command to force it To delete this file, also operate in the DOS command line. In the command line, enter: del /s/f/q e:\QXOpenGame.exe. Note: del /s/f/q is followed by the path of the file that needs to be forcibly deleted. And the folder name, the file name should be followed by the extension
After pressing Enter, the original file that cannot be deleted has disappeared
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What is the command to forcefully delete a folder?. For more information, please follow other related articles on the PHP Chinese website!