fixed delete_files