Answers for "batch delete folder and contents"

9

batch delete folder

# NOTE: for cmd/batch/DOS only (not bash/Linux)

# EXAMPLE:
rmdir /s /q "C:\Users\TomDickHarry\DeletableStuff"

# SYNTAX
# rmdir /s /q "<your-folder-to-delete>"
Posted by: Guest on June-15-2020
0

batch delete all folders and files

for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
Posted by: Guest on June-08-2021

Code answers related to "batch delete folder and contents"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language