Remove a package and its unused dependencies.