remove unused packages from env