1dotnet-new-uninstall(1)       .NET Documentation       dotnet-new-uninstall(1)
2
3
4

dotnet new uninstall

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

NAME

9       dotnet-new-uninstall - uninstalls a template package.
10

SYNOPSIS

12              dotnet new uninstall <PATH|NUGET_ID>
13                  [-d|--diagnostics] [--verbosity <LEVEL>] [-h|--help]
14

DESCRIPTION

16       The  dotnet  new uninstall command uninstalls a template package at the
17       PATH or NUGET_ID provided.  When the <PATH|NUGET_ID> value isn’t speci‐
18       fied,  all  currently  installed template packages and their associated
19       templates are displayed.  When specifying NUGET_ID, don’t  include  the
20       version number.
21
22       Starting with the .NET 7 SDK, the dotnet new syntax has changed:
23
24       • The --list, --search, --install, and --uninstall options became list,
25         search, install and uninstall subcommands.
26
27       • The --update-apply option became the update subcommand.
28
29       • To use --update-check, use the update subcommand with the --check-on‐
30         ly option.
31
32       Other  options  that  were  available before are still available to use
33       with their respective subcommands.  Separate help for  each  subcommand
34       is  available  via  the  -h  or  --help option: dotnet new <subcommand>
35       --help lists all supported options for the subcommand.
36
37       Additionally, tab completion is now available for dotnet new.  It  sup‐
38       ports completion for installed template names and for the options a se‐
39       lected template provides.  To activate tab completion for the .NET SDK,
40       see  Enable tab completion.  > > Examples of the old syntax: > > - List
41       the installed templates and details about them, including how to  unin‐
42       stall  them: > > dotnetcli >   dotnet new --uninstall > > > - Uninstall
43       the Azure web jobs project template package: > > dotnetcli  >    dotnet
44       new --uninstall Microsoft.Azure.WebJobs.ProjectTemplates >
45

ARGUMENTS

47<PATH|NUGET_ID>
48
49         The  folder  on  the  file system or the NuGet package identifier the
50         package was installed from.  Note that  the  version  for  the  NuGet
51         package should not be specified.
52

OPTIONS

54-d|--diagnostics
55
56         Enables diagnostic output.  Available since .NET SDK 7.0.100.
57
58-h|--help
59
60         Prints  out help for the uninstall command.  Available since .NET SDK
61         7.0.100.
62
63-v|--verbosity <LEVEL>
64
65         Sets the verbosity level of the command.  Allowed values are q[uiet],
66         m[inimal],  n[ormal],  and  diag[nostic].   Available  since .NET SDK
67         7.0.100.
68

EXAMPLES

70       • List the installed templates and details about them, including how to
71         uninstall them:
72
73                dotnet new uninstall
74
75       • Uninstall the SPA templates for ASP.NET Core:
76
77                dotnet new uninstall Microsoft.DotNet.Web.Spa.ProjectTemplates
78

SEE ALSO

80       • dotnet new command
81
82       • dotnet new list command
83
84       • dotnet new search command
85
86       • Custom templates for dotnet new
87
88
89
90                                  2022-11-08           dotnet-new-uninstall(1)
Impressum