dotnet-new-uninstall(1)

πŸ“¦
version 11.0.0~rc3 Β· 6 versions
, in alpine 3.24, centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– dotnet-new-uninstall(1) πŸ’–

okay so bestie, welcome to the manual page for dotnet-new-uninstall, straight out of the .NET Documentation. yes we're doing manpage reading, it's giving study date but make it cute πŸŽ€

✨ This article applies to: βœ”οΈ .NET 6 SDK and later versions ✨

🌸 NAME 🌸

dotnet-new-uninstall β€” uninstalls a template package. that's it, that's the job, and it does it flawlessly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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

✨ DESCRIPTION ✨

so the dotnet new uninstall command uninstalls a template package at the PATH or NUGET_ID you hand it. and here's the lil plot twist: when you don't specify the <PATH|NUGET_ID> value, it shows you all the currently installed template packages and their associated templates instead. so it's like a surprise peek at your collection πŸ‘€

when you specify NUGET_ID, do NOT include the version number. literally just the id, no version, we don't do that here.


πŸ•°οΈ the .NET 7 SDK glow-up (syntax changes)

starting with the .NET 7 SDK, the dotnet new syntax changed, and honestly it ate:

  • the --list, --search, --install, and --uninstall options became list, search, install, and uninstall subcommands.
  • the --update-apply option became the update subcommand.
  • to use --update-check, use the update subcommand with the --check-only option.

the other options that were available before are still available to use with their respective subcommands, no worries bestie 🫢 separate help for each subcommand is available via the -h or --help option β€” so dotnet new <subcommand> --help lists all supported options for the subcommand.

bonus: 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.


πŸ“Ό throwback: examples of the OLD syntax

  • list the installed templates and details about them, including how to uninstall them:
dotnet new --uninstall
  • uninstall the Azure web jobs project template package:
dotnet new --uninstall Microsoft.Azure.WebJobs.ProjectTemplates

πŸŽ€ ARGUMENTS πŸŽ€

  • <PATH|NUGET_ID> β€” the folder on the file system, or the NuGet package identifier the package was installed from. heads up: the version for the NuGet package should not be specified. just the id, periodt πŸ’…

πŸ‘‘ OPTIONS πŸ‘‘

  • -d|--diagnostics β€” enables diagnostic output. available since .NET SDK 7.0.100.
  • -h|--help β€” prints out help for the uninstall command. available since .NET SDK 7.0.100.
  • -v|--verbosity <LEVEL> β€” sets the verbosity level of the command. allowed values are q[uiet], m[inimal], n[ormal], and diag[nostic]. available since .NET SDK 7.0.100.

πŸ’œ EXAMPLES πŸ’œ

  • list the installed templates and details about them, including how to uninstall them:
dotnet new uninstall
  • uninstall the SPA templates for ASP.NET Core:
dotnet new uninstall Microsoft.DotNet.Web.Spa.ProjectTemplates

πŸ”₯ SEE ALSO πŸ”₯

  • dotnet new command
  • dotnet new list command
  • dotnet new search command
  • Custom templates for dotnet new

and that's the whole page, bestie 🧚 source: .NET Documentation, version dotnet-new-uninstall(1), dated 2025-10-30. go uninstall something, ily, slay πŸ’–βœ¨

πŸ“¦ where this page comes from