1(1)                                  .NET                                  (1)
2
3
4

dotnet nuget delete

6       This article applies to: ✔️ .NET Core 1.x SDK and later versions
7

NAME

9       dotnet nuget delete - Deletes or unlists a package from the server.
10

SYNOPSIS

12              dotnet nuget delete [<PACKAGE_NAME> <PACKAGE_VERSION>] [--force-english-output]
13                  [--interactive] [-k|--api-key <API_KEY>] [--no-service-endpoint]
14                  [--non-interactive] [-s|--source <SOURCE>]
15
16              dotnet nuget delete -h|--help
17

DESCRIPTION

19       The  dotnet  nuget delete command deletes or unlists a package from the
20       server.  For nuget.org (https://www.nuget.org/), the action is  to  un‐
21       list the package.
22
23   Arguments
24PACKAGE_NAME
25
26         Name/ID of the package to delete.
27
28PACKAGE_VERSION
29
30         Version of the package to delete.
31

OPTIONS

33--force-english-output
34
35         Forces  the application to run using an invariant, English-based cul‐
36         ture.
37
38-?|-h|--help
39
40         Prints out a description of how to use the command.
41
42--interactive
43
44         Allows the command to stop and wait for user input  or  action.   For
45         example,  to  complete authentication.  Available since .NET Core 3.0
46         SDK.
47
48-k|--api-key <API_KEY>
49
50         The API key for the server.
51
52--no-service-endpoint
53
54         Doesn’t append “api/v2/package” to the source URL.  Option  available
55         since .NET Core 2.1 SDK.
56
57--non-interactive
58
59         Doesn’t prompt for user input or confirmations.
60
61-s|--source <SOURCE>
62
63         Specifies  the  server  URL.   Supported  URLs  for nuget.org include
64         https://www.nuget.org,       https://www.nuget.org/api/v3,        and
65         https://www.nuget.org/api/v2/package.  For private feeds, replace the
66         host name (for example, %hostname%/api/v3).
67

EXAMPLES

69       • Deletes version 1.0 of package Microsoft.AspNetCore.Mvc:
70
71                dotnet nuget delete Microsoft.AspNetCore.Mvc 1.0
72
73       • Deletes version 1.0 of package Microsoft.AspNetCore.Mvc, not  prompt‐
74         ing user for credentials or other input:
75
76                dotnet nuget delete Microsoft.AspNetCore.Mvc 1.0 --non-interactive
77
78
79
80                                                                           (1)
Impressum