Simple DOS command to delete log files and cleanup a drive

Free up space on the main Windows C:\ drive.  There are many large logs files in the Windows folder.  Clean them up with this command which deletes all the way down the Windows doc tree.

cd c:
cd windows
del *.log /a /s /q /f

Change directories to folder at top of directory tree you wish to clean (such as W3SVC logs folder) and clean it up.