How do I delete files or folders recursively on Windows from the command line?
I have found this solution where path we drive on the command line and run this comman
RMDIR path_to_folder /S
ex. RMDIR "C:\tmp" /S
RMDIR "C:\tmp" /S
Note that you'll be prompted if you're really going to delete the "C:\tmp" folder. Combining it with /Q switch will remove the folder silently (ex. RMDIR "C:\tmp" /S /Q)
RMDIR "C:\tmp" /S /Q