Delete files or folder recursively on Windows CMD

modasser picture modasser · Oct 5, 2012 · Viewed 262.7k times · Source

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 command.

I have given an example with a .svn file extension folder:

for /r %R in (.svn) do if exist %R (rd /s /q "%R")

Answer

DGuntoju picture DGuntoju · Oct 9, 2014

Please execute the following steps:

  1. Open the command prompt
  2. Change directory to the required path
  3. Give the following command

    del /S *.svn