Know-how DOS
DOS/command.com got some nice enhancements since DOS 5...

Delete all files older that 30 days

FORFILES /d -30 /c "cmd /c del @file"