Recursively remove files using del /s

Hits: Failed to execute CGI : Win32 Error Code = 3


I use Ultraedit-32 to create and maintain this site. It creates a backup file of any file I edit with the extension .BAK I don't want the .BAK files transferred to my web site. To remove them, I open a command shell in the root directory of my web pages on my PC. There are many subdirectories with potential .BAK under this folder. To delete them recursively:

del *.bak /s

The command tells the command shell to delete all files with a .bak extension in this directory and any subdirectory (/s). I use the same tool to remove unwanted temporary files which have a .tmp extension which are left by windows activity. The folder recursion parameter works for the directory command, so you can use it to find files using the commandline as in

dir *.bak /s