delete the unnecessary files