logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Arguments

PACKAGE_NAME

         Name/ID of the NuGet package that contains the .NET tool to uninstall.  You can find the  package  name
         using the dotnet tool list command.

Description

       The  dotnettooluninstall command provides a way for you to uninstall .NET tools from your machine.  To
       use the command, you specify one of the following options:

       • To uninstall a global tool that was installed in the default location, use the --global option.

       • To uninstall a global tool that was installed in a custom location, use the --tool-path option.

       • To uninstall a local tool, omit the --global and --tool-path options.

Dotnet Tool Uninstall

Thisarticleappliesto: ✔️ .NET Core 3.1 SDK and later versions

Examples

dotnettooluninstall-gdotnetsay

         Uninstalls the dotnetsay (https://www.nuget.org/packages/dotnetsay/) global tool.

       • dotnettooluninstalldotnetsay--tool-pathc:\global-tools

         Uninstalls the dotnetsay (https://www.nuget.org/packages/dotnetsay/) global tool from a  specific  Win‐
         dows directory.

       • dotnettooluninstalldotnetsay--tool-path~/bin

         Uninstalls  the  dotnetsay (https://www.nuget.org/packages/dotnetsay/) global tool from a specific Lin‐
         ux/macOS directory.

       • dotnettooluninstalldotnetsay

         Uninstalls the dotnetsay (https://www.nuget.org/packages/dotnetsay/) local tool from the current direc‐
         tory.

Name

       dotnet-tool-uninstall - Uninstalls the specified .NET tool from your machine.

Options

-g|--global

         Specifies  that  the  tool  to be removed is from a user-wide installation.  Can’t be combined with the
         --tool-path option.  Omitting both --global and --tool-path specifies that the tool to be removed is  a
         local tool.

       • -?|-h|--help

         Prints out a description of how to use the command.

       • --tool-path<PATH>

         Specifies  the  location where to uninstall the tool.  PATH can be absolute or relative.  Can’t be com‐
         bined with the --global option.  Omitting both --global and --tool-path specifies that the tool  to  be
         removed is a local tool.

       • --tool-manifest<PATH>

         Specifies  the  manifest  file  that the tool is to be removed from.  PATH can be absolute or relative.
         Can’t be combined with the --global option.

See Also

       • .NET tools

       • Tutorial: Install and use a .NET global tool using the .NET CLI

       • Tutorial: Install and use a .NET local tool using the .NET CLI

                                                   2024-10-02                           dotnet-tool-uninstall(1)

Synopsis

              dotnet tool uninstall <PACKAGE_NAME> -g|--global

              dotnet tool uninstall <PACKAGE_NAME> --tool-path <PATH> [--tool-manifest <PATH>]

              dotnet tool uninstall <PACKAGE_NAME>

              dotnet tool uninstall -h|--help

See Also