purge old file handling