delete obsolete files according to the filename format