@echo off

 forfiles -p "H:\GHOST\123" -s -m *.txt -d -30 -c "cmd /c del @path"