1dotnet-tool-uninstall(1) .NET Documentation dotnet-tool-uninstall(1)
2
3
4
6 This article applies to: ✔️ .NET Core 3.1 SDK and later versions
7
9 dotnet-tool-uninstall - Uninstalls the specified .NET tool from your
10 machine.
11
13 dotnet tool uninstall <PACKAGE_NAME> -g|--global
14
15 dotnet tool uninstall <PACKAGE_NAME> --tool-path <PATH>
16
17 dotnet tool uninstall <PACKAGE_NAME>
18
19 dotnet tool uninstall -h|--help
20
22 The dotnet tool uninstall command provides a way for you to uninstall
23 .NET tools from your machine. To use the command, you specify one of
24 the following options:
25
26 • To uninstall a global tool that was installed in the default loca‐
27 tion, use the --global option.
28
29 • To uninstall a global tool that was installed in a custom location,
30 use the --tool-path option.
31
32 • To uninstall a local tool, omit the --global and --tool-path options.
33
35 • PACKAGE_NAME
36
37 Name/ID of the NuGet package that contains the .NET tool to unin‐
38 stall. You can find the package name using the dotnet tool list com‐
39 mand.
40
42 • -g|--global
43
44 Specifies that the tool to be removed is from a user-wide installa‐
45 tion. Can’t be combined with the --tool-path option. Omitting both
46 --global and --tool-path specifies that the tool to be removed is a
47 local tool.
48
49 • -?|-h|--help
50
51 Prints out a description of how to use the command.
52
53 • --tool-path <PATH>
54
55 Specifies the location where to uninstall the tool. PATH can be ab‐
56 solute or relative. Can’t be combined with the --global option.
57 Omitting both --global and --tool-path specifies that the tool to be
58 removed is a local tool.
59
61 • dotnet tool uninstall -g dotnetsay
62
63 Uninstalls the dotnetsay (https://www.nuget.org/packages/dotnetsay/)
64 global tool.
65
66 • dotnet tool uninstall dotnetsay --tool-path c:\global-tools
67
68 Uninstalls the dotnetsay (https://www.nuget.org/packages/dotnetsay/)
69 global tool from a specific Windows directory.
70
71 • dotnet tool uninstall dotnetsay --tool-path ~/bin
72
73 Uninstalls the dotnetsay (https://www.nuget.org/packages/dotnetsay/)
74 global tool from a specific Linux/macOS directory.
75
76 • dotnet tool uninstall dotnetsay
77
78 Uninstalls the dotnetsay (https://www.nuget.org/packages/dotnetsay/)
79 local tool from the current directory.
80
82 • .NET tools
83
84 • Tutorial: Install and use a .NET global tool using the .NET CLI
85
86 • Tutorial: Install and use a .NET local tool using the .NET CLI
87
88
89
90 2022-10-10 dotnet-tool-uninstall(1)