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
- ‘pip’ is not recognized as an internal or external command
- Difference between masm32 and masm?
- Ignoring directories in Git repositories on Windows
- C compiler for Windows?
- What does cmd /C mean?
- How can you find out which process is listening on a TCP or UDP port on Windows?
- Filename too long in Git for Windows
- How to remove anaconda from windows completely?
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- How can I find and run the keytool
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- Installing tensorflow with anaconda in windows
- error: Unable to find vcvarsall.bat
- VC++ fatal error LNK1168: cannot open filename.exe for writing
- How can I convert a .jar to an .exe?
- Python command not working in command prompt
- Verify return code: 20 when testing OpenSSL
- Command line for looking at specific port
- How to uninstall a Windows Service when there is no executable for it left on the system?
- Windows Activation Batch (.cmd File
- What is the difference between Cygwin and MinGW?
- Compare 2 directories in windows
- Can’t start hostednetwork
- Pip – Fatal error in launcher: Unable to create process using ‘”‘
- OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
- python is not recognized windows 10
- Python not working in the command line of git bash
- Bluescreen on windows 10 after using android emulator
- Failed to load the JNI shared Library (JDK)
- Setting up a cron job in Windows
- While loop in batch
- Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)
- Bridged networking not working in Virtualbox under Windows 10
- OS x El capitan 10.11 – Virtualbox – Missing Bluetooth Controller Transport
- mysql community server vs mysql installer
- 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
- Need auto-restart script in batch for minecraft server
- npm install with error: `gyp` failed with exit code: 1
- Systrace for Windows
- Can I get Unix’s pthread.h to compile in Windows?
- 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
- 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?
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- Accessing private posts through REST API, same code that works in remote doesn’t in local
- Using Windows Server 2012 How to Move Uploads Folder to another hard drive
- Newbie: Multiple WP sites on Windwos 2012 IIS
- How to sleep in a batch file?
- Does Windows have a built-in ZIP command for the command line?
- Best practice: Should I always install a fresh OS for new employees?
- How to fix PuTTY showing garbled characters? [closed]
- What is the Windows equivalent of Unix “whoami” command?
- How to configure a Windows machine to allow file sharing with a DNS alias