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
- How to fix “VirtualBox Interface has active connections” error in Windows?
- ‘pip’ is not recognized as an internal or external command
- outputting ascii table in C++
- Tensorflow import error: No module named ‘tensorflow’
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- How can I install pip on Windows?
- bash: npm: command not found?
- Setting Windows PowerShell environment variables
- finding dll for “The specified module could not be found”
- What does cmd /C mean?
- Windows 7 exception code: 0xc0000409
- adb is not recognized as internal or external command, operable program or batch file
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- What languages are Windows, Mac OS X and Linux written in?
- stop all instances of node.js server
- Python command not working in command prompt
- LNK1168: cannot open debug\file.exe for writing
- Windows Activator .bat Text
- No Module Named ‘_pywrap_tensorflow_internal’
- UnicodeDecodeError: ‘charmap’ codec can’t decode byte X in position Y: character maps to
- Opening a remote machine’s Windows C drive
- Can’t start hostednetwork
- Create PDF file using PHP
- python pip on Windows – command ‘cl.exe’ failed
- What is Windows Fabric and how to host services in it?
- scp from Linux to Windows
- Python not working in the command line of git bash
- Bluescreen on windows 10 after using android emulator
- ImportError: No module named cv2
- How to get the text cursor position in Windows?
- Bridged networking not working in Virtualbox under Windows 10
- How do I get the current username in Windows PowerShell?
- How can I download a file with batch file without using any external tools?
- Adb backup does not work
- What is a Windows Handle?
- Error: Could not find or load main class net.minecraft.launchwrapper.Launch when launching Minecraft 1.12.2 with Forge
- The requested operation cannot be performed on a file with a user-mapped section open
- How to set commands output as a variable in a batch file
- HyperV is not available on Home editions
- Unable to start MySQL server
- Dependency Walker: missing dlls
- How do I execute a *.dll file
- How to enable Bash in Windows 10 developer preview?
- Posting with slug “favicon” gets redirected
- WP Cli will not execute on Windows
- Offline WordPress Application
- Accessing private posts through REST API, same code that works in remote doesn’t in local
- WordPress on XAMPP over my home network [closed]
- WordPress database setup Windows 2016 IIS
- Does WordPress Support Using Named Pipes on the Windows Operating System?
- How to send ctrl+alt+del using Remote Desktop?
- Is there a global, persistent CMD history?
- How to check if a port is blocked on a Windows machine?
- How can I connect to a Windows server using a Command Line Interface? (CLI)
- How to delete cached temporarily credentials for a network share on a Windows machine without rebooting or logging off [duplicate]
- swap partition vs file for performance?
- How do you free up a port being held open by dead process?