I'm looking for a command line utility to delete NTFS files and directories. And I want it to work: close handles, recurse, never fail, never quit, super-kill stubborn holders of handles, everything.
Try this out-if the files are locked sometimes the ONLY way to delete them is during a reboot: http://www.docsdownloads.com/Tier1/dr-delete.htm
You didn't specify if its something that has to be done at a specific time or if you just need files deleted that are stubborn.
What about Movefile from sysinternals? It schedules up the deletion (just set the destination as "" to delete) to occur during reboot before anything can get a handle on the files: http://technet.microsoft.com/en-us/sysinternals/bb897556.aspx
And it is a commandline application so easily scripted in.