delete command (NuGet CLI)
Applies to: package publishing • Supported versions: all
Deletes or unlists a package from a package source. For nuget.org, the delete command unlists the package.
Usage
nuget delete <packageID> <packageVersion> [options]
where <packageID>
and <packageVersion>
identify the exact package to delete or unlist. The exact behavior depends on the source. For local folders, for instance, the package is deleted; for nuget.org the package is unlisted.
Options
-ApiKey
The API key for the target repository. If not present, the one specified in the config file is used.
-ConfigFile
The NuGet configuration file to apply. If not specified,
%AppData%\NuGet\NuGet.Config
(Windows), or~/.nuget/NuGet/NuGet.Config
or~/.config/NuGet/NuGet.Config
(Mac/Linux) is used.-ForceEnglishOutput
(3.5+) Forces nuget.exe to run using an invariant, English-based culture.
-?|-help
Displays help information for the command.
-NonInteractive
Suppresses prompts for user input or confirmations.
-np|-NoPrompt
Do not prompt when deleting.
-NoServiceEndpoint
Does not append "api/v2/packages" to the source URL.-src|-Source
Specifies the server URL. The URL for nuget.org is
https://api.nuget.org/v3/index.json
. For private feeds, substitute the host name, for example, %hostname%/api/v3.-Verbosity [normal|quiet|detailed]
Specifies the amount of detail displayed in the output:
normal
(the default),quiet
, ordetailed
.
Also see Environment variables
Examples
nuget delete MyPackage 1.0
nuget delete MyPackage 1.0 -Source http://package.contoso.com/source -apikey A1B2C3
प्रतिक्रिया
https://aka.ms/ContentUserFeedback.
जल्द आ रहा है: 2024 के दौरान हम सामग्री के लिए फीडबैक तंत्र के रूप में GitHub मुद्दों को चरणबद्ध तरीके से समाप्त कर देंगे और इसे एक नई फीडबैक प्रणाली से बदल देंगे. अधिक जानकारी के लिए, देखें:के लिए प्रतिक्रिया सबमिट करें और देखें