@echo off

set p=D:\logs

pushd %p%

forfiles -s -m *.* -d -7 -c "cmd /c del @path"