Should you delete the old Nuget package files/folders under the packages directory after you upgrade a package?

Maybe I'm just being overly picky, but seeing files/folder for older package versions it bothering me. Is there a good reason NOT to delete the package folders for previous package versions?


1 Answer 1


NuGet should remove old versions when upgrading, without any specific user intervention. If, for some reason, the old versions still exist after upgrade then they're safe to remove since there's no reason to keep them there.

I'm assuming that the upgrade is done through update-package command.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.