Hi All,
There is one issue, the logic is written as such bot should delete the file except last month and last to last month, i.e if this august then it should delete may june file if it exist.
Path.GetFileName(file).Contains(Now.ToString(“MMMM_”)+Now.Year.ToString) or Path.GetFileName(file).Contains(Now.AddMonths(-1).ToString(“MMMM_”)+Now.AddMonths(-1).Year.ToString)