O'Reilly logo

Pro NuGet by Xavier Decoster, Maarten Balliauw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deleting Packages

After publishing a package to a NuGet feed, the NuGet delete command enables a user to delete a package from the server. Note that some NuGet feeds, like the official NuGet gallery at NuGet.org, may not allow package deletion. The reason for this is threefold:

  • Other packages may depend on that package. Those packages might not necessarily be on the same feed.
  • It ensures that folks who are not committing packages (package restore) will not have broken builds.
  • It helps ensure that important community owned packages are not mass deleted.

Here's an example:

nuget delete <package Id> <package version> [API Key] [options]

Available options are shown in Table B-1.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required