delete useless data and files