Cutoff_date = Todays_date - 31 For each file If creation_date < cutoff_date delete file End If statement End For each loop