Windows 7 comes with a pretty hand system tool that helps you clean up some of the junk files from your system, called Disk Cleanup. But it wasn’t designed to clean up the system log files for you. Normally, you don’t need to bother cleaning them up and you aren’t supposed to anyway. However, if they have been accumulated to a point that bothers you, here is a very easy way of doing so. Thanks the guys at AddictiveTips for sharing this tip.
Usually, these system log files are stored in %SystemRoot% directory, which usually is your C:\windows folder. Because of that, you will need to open Dos Prompt window in administrator first, change to %systemroot% directory, and run the following dos commands.
DEL *.log /S /F /Q
/S: delete specified files from all subdirectories.
/F: force deleting of read-only files.
/Q: quiet mode that doesn’t ask if ok to delete on wildcards.