Home Forums SQL Server 2005 T-SQL (SS2K5) Delete files olde than 48 hours based on filename, not date modified. RE: Delete files olde than 48 hours based on filename, not date modified.

  • I agree with GSquared. While it is possible to do this via xp_cmdshell, I would not advise it. Create a vbscript or .bat file that will do the same thing, but you can scedule it via the windows sceduler.