1(1) .NET (1)
2
3
4
6 This article applies to: ✔️ .NET Core 2.0 SDK and later versions
7
9 dotnet new --uninstall - uninstalls a template package.
10
12 dotnet new --uninstall <PATH|NUGET_ID>
13
15 The dotnet new --uninstall command uninstalls a template package at the
16 PATH or NUGET_ID provided. When the <PATH|NUGET_ID> value isn’t speci‐
17 fied, all currently installed template packages and their associated
18 templates are displayed. When specifying NUGET_ID, don’t include the
19 version number. If you don’t specify a parameter to this option, the
20 command lists the installed templates and details about them. >
21 [!NOTE] > To uninstall a template using a PATH, you need to fully qual‐
22 ify the path. For example, C:/Users/<USER>/Documents/Templates/Garcia‐
23 Software.ConsoleTemplate.CSharp will work, but ./GarciaSoftware.Conso‐
24 leTemplate.CSharp from the containing folder will not. > Don’t include
25 a final terminating directory slash on your template path.
26
28 • List the installed templates and details about them, including how to
29 uninstall them:
30
31 dotnet new -u
32
33 • Uninstall the SPA templates for ASP.NET Core:
34
35 dotnet new -u Microsoft.DotNet.Web.Spa.ProjectTemplates
36
37 See also
38 • dotnet new command
39
40 • dotnet new –list option
41
42 • dotnet new –search option
43
44 • Custom templates for dotnet new
45
46
47
48 (1)