Windows なら forfiles ってコマンドがあるよ

7日より前のログファイルを消すなら、

forfiles /P c:\path〜\log /D -7 /M "*.log" /c "cmd /c del @file"