rm_files in scanner