Added delete old files functionality