RMDIR or RD if you are using the classic Command Prompt (cmd.exe):
rd /s /q "path"
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S
If you are using PowerShell you can use Remove-Item
(which is aliased to del
, erase
, rd
, ri
, rm
and rmdir
) and takes a -Recurse
argument that can be shorted to -r
rd -r "path"
Related Posts:
- “rm -rf” equivalent for Windows?
- How do I test if Python is installed on Windows (10), and run an exe to install it if its not installed?
- Windows equivalent to UNIX pwd
- How do I kill the process currently using a port on localhost in Windows?
- Windows 7 – ‘make’ is not recognized as an internal or external command, operable program or batch file
- Ping with timestamp on Windows CLI
- What is the Windows equivalent of the diff command?
- Changing all files’ extensions in a folder with one command on Windows
- What is the reason for the error message “System cannot find the path specified”?
- How to run powershell script from .ps1 file?
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- ” is not recognized as an internal or external command, operable program or batch file
- How can I open a cmd window in a specific location?
- Create an empty file on the commandline in windows (like the linux touch command)
- Need to navigate to a folder in command prompt
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- ” is not recognized as an internal or external command, operable program or batch file
- Access is denied in windows cmd.Why?
- How to “comment-out” (add comment) in a batch/cmd?
- The filename, directory name, or volume label syntax is incorrect inside batch
- Moving file using cmd?
- How to force `findstr` to ignore `Cannot open` returns
- How to “comment-out” (add comment) in a batch/cmd?
- “if not exist” command in batch file
- “if not exist” command in batch file
- Defining and using a variable in batch file
- How to run PowerShell in CMD
- How to open an elevated cmd using command line for Windows?
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- What is the reason for the CD /D switch in Windows cmd?
- PHP is not recognized as an internal or external command in command prompt
- ‘openssl’ is not recognized as internal or external command
- XCOPY: Overwrite all without prompt in BATCH
- Curl not recognized as an internal or external command, operable program or batch file
- Redirecting Output from within Batch file
- How does the echo command works in batch programming
- How to split large text file in windows?
- Windows CMD command for accessing usb?
- How do I use spaces in the Command Prompt?
- Calling dir in cmd prints out: “Volume in drive C has no label.”
- Command prompt won’t change directory to another drive
- How to extract or unpack an .ab file (Android Backup file)
- Desktop: The system cannot find the specified path
- What exactly are DLL files, and how do they work?
- How to fix “VirtualBox Interface has active connections” error in Windows?
- How to fix “VirtualBox Interface has active connections” error in Windows?
- ‘pip’ is not recognized as an internal or external command
- The application was unable to start correctly (0xc000007b)
- ‘python’ is not recognized as an internal or external command [duplicate]
- Why is “MINGW64” appearing on my Git bash?
- How can I update npm itself?
- outputting ascii table in C++
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- how to get program files x86 env variable?
- Difference between masm32 and masm?
- Can’t start Eclipse – Java was started but returned exit code=13
- Can’t start Eclipse – Java was started but returned exit code=13
- How do I start PowerShell from Windows Explorer?
- Tensorflow import error: No module named ‘tensorflow’
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- Unexplained crashes related to ntdll.dll
- How can I install pip on Windows?
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- How to upgrade Git on Windows to the latest version
- PermissionError: [Errno 13] Permission denied
- What does “@” mean in Windows batch scripts
- Permanently add a directory to PYTHONPATH?
- What are good grep tools for Windows? [closed]
- How to run a PowerShell script
- bash: npm: command not found?
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- ‘git’ is not recognized as an internal or external command
- Install an apk file from command prompt?
- How do I install and use cURL on Windows?
- Install an apk file from command prompt?
- Failed to write core dump. minidumps are not enabled by default on client version of windows
- “Javac” doesn’t work correctly on Windows 10
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- ow can I find where Python is installed on Windows?
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- Ignoring directories in Git repositories on Windows
- ‘git’ is not recognized as an internal or external command
- C compiler for Windows?
- Setting Windows PowerShell environment variables
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- finding dll for “The specified module could not be found”
- What does cmd /C mean?
- What does cmd /C mean?
- Why is Windows 32-bit called Windows x86 and not Windows x32?
- How to install MinGW 64 on windows 10
- How to run a PowerShell script
- How can I clear console
- How to go from fopen to fopen_s
- Copying a local file from Windows to a remote server using scp
- undefined reference to WinMain@16 (codeblocks)
- How can you find out which process is listening on a TCP or UDP port on Windows?
- anaconda – path environment variable in windows
- “X does not name a type” error in C++
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- Windows 7 exception code: 0xc0000409