Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
This article applies to: ✔️ .NET 6 SDK and later versions
Name
dotnet nuget delete - Deletes or unlists a package from the server.
Synopsis
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
Description
The dotnet nuget delete command deletes or unlists a package from the server. For nuget.org, the action is to unlist the package.
Arguments
PACKAGE_NAMEName/ID of the package to delete.
PACKAGE_VERSIONVersion of the package to delete.
Options
--force-english-outputForces the application to run using an invariant, English-based culture.
-
-?|-h|--helpPrints out a description of how to use the command.
-
--interactiveAllows the command to stop and wait for user input or action. For example, to complete authentication.
-k|--api-key <API_KEY>The API key for the server.
--no-service-endpointBy default, the command appends "/api/v2/package" to the specified URL. This option is for custom feeds that must use the exact source URL as specified with the
--sourceoption. For more information, see the--sourceoption later in this article.--non-interactiveDoesn't prompt for user input or confirmations.
-s|--source <SOURCE>Specifies the server URL. The URL specified by using this option can be either V2 (
https://www.nuget.org/api/v2/) or V3 (https://api.nuget.org/v3/index.json). For private feeds, replace the host name (for example,%hostname%/api/v3/index.json).
Examples
Deletes version 1.0 of package
Microsoft.AspNetCore.Mvc:dotnet nuget delete Microsoft.AspNetCore.Mvc 1.0Deletes 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