dotnet-new-uninstall - Man Page

uninstalls a template package.

dotnet new uninstall

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

Synopsis

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

Description

The dotnet new uninstall command uninstalls a template package at the PATH or NUGET_ID provided. When the <PATH|NUGET_ID> value isn’t specified, all currently installed template packages and their associated templates are displayed. When specifying NUGET_ID, don’t include the version number.

Starting with the .NET 7 SDK, the dotnet new syntax has changed:

Other options that were available before are still available to use with their respective subcommands. Separate help for each subcommand is available via the -h or --help option: dotnet new <subcommand> --help lists all supported options for the subcommand.

Additionally, tab completion is now available for dotnet new. It supports completion for installed template names and for the options a selected template provides. To activate tab completion for the .NET SDK, see Enable tab completion. > > Examples of the old syntax: > > - List the installed templates and details about them, including how to uninstall them: > > dotnetcli >   dotnet new --uninstall > > > - Uninstall the Azure web jobs project template package: > > dotnetcli >   dotnet new --uninstall Microsoft.Azure.WebJobs.ProjectTemplates >

Arguments

Options

Examples

See Also

Info

2023-10-25 .NET Documentation