This article applies to: ✔️ .NET Core 3.1 SDK and later versions
dotnet-nuget-delete - Deletes or unlists a package from the server.
dotnet nuget delete [<PACKAGE_NAME> <PACKAGE_VERSION>] [--force-english-output] [--interactive] [-k|--api-key <API_KEY>] [--no-service-endpoint] [--non-interactive] [-s|--source <SOURCE>] dotnet nuget delete -h|--help
The dotnet nuget delete command deletes or unlists a package from the server. For nuget.org (https://www.nuget.org/), the action is to unlist the package.
• |
PACKAGE_NAME |
Name/ID of the package to delete.
• |
PACKAGE_VERSION |
Version of the package to delete.
• |
--force-english-output |
Forces the application to run using an invariant, English-based culture.
• |
-?|-h|--help |
Prints out a description of how to use the command.
• |
--interactive |
Allows the command to stop and wait for user input or action. For example, to complete authentication. Available since .NET Core 3.0 SDK.
• |
-k|--api-key <API_KEY> |
The API key for the server.
• |
--no-service-endpoint |
Doesn’t append “api/v2/package” to the source URL.
• |
--non-interactive |
Doesn’t prompt for user input or confirmations.
• |
-s|--source <SOURCE> |
Specifies the server URL. Supported URLs for nuget.org include https://www.nuget.org, https://www.nuget.org/api/v3, and https://www.nuget.org/api/v2/package. For private feeds, replace the host name (for example, %hostname%/api/v3).
• |
Deletes version 1.0 of package Microsoft.AspNetCore.Mvc: |
dotnet nuget delete Microsoft.AspNetCore.Mvc 1.0
• |
Deletes version 1.0 of package Microsoft.AspNetCore.Mvc, not prompting user for credentials or other input: |
dotnet nuget delete Microsoft.AspNetCore.Mvc 1.0 --non-interactive