Delete files older than 30 days on Windows


forfiles -p "F:\Logs" -s -m *.log /D -30 /C "cmd /c del @path"