Package to delete files | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

Package to delete files

Hey all, I need to create a package that will go out and delete on .txt files from a LAN directory. Could someone please provide package details and code for me. I want to delete files that are 4 weeks older then the current date. Thank you Hope this helps.
Thank you for your help, but I am sorry. I am not a programmer and I am lost. I need to go out and find reports within this directory. (L:ackup) and delete ones older then 30 days. The report name is (tarec.rec2004-7-21 10-42.rec). Each week the report name changes to a new date and time within the name of the report. This is where it gets difficult, since the report name is not the same each week. Thank you Tom Cmunt