Remove the unnecessary packages