Following the recommendations of this forum, I ended up installing Ola Hallengren scripts weeks ago.
During install of I set up the deletion of the backup to be every 7 days. I would like now to change that to 4 days. How would I do that?
I had a look at the sp_delete_bakcuphistory but only see that
DECLARE @CleanupDate datetime
SET @CleanupDate = DATEADD(dd,-30,GETDATE())
EXECUTE dbo.sp_delete_backuphistory @oldest_date = @CleanupDate
I presume the CleanupDate variable is to 30 days and not seven days like I asked... I am really not sure.