Home Forums SQL Server 2005 Administering Maintenance Plan not deleting physical backup file RE: Maintenance Plan not deleting physical backup file

  • Manually use this query and schedule it..

    declare @dt datetime

    select @dt=getdate() - N-- N is the files with Ndays old

    EXECUTE master.dbo.xp_delete_file 0,N'Backup Location',N'BAK',@dt