Home Forums SQL Server 2005 Administering How to delete any backup files based on CURRENT day in a daily schedule. RE: How to delete any backup files based on CURRENT day in a daily schedule.

  • Is your purpose to not have any files more than 2 days old ?

    You could try the Windows utility FORFILES. It has different syntax based on your Windows version. I use it to delete files older than 'X' days.

    It only takes 1 line of code and you specify the path and file extension or *.*