| title | dotnet workload clean command |
|---|---|
| description | The `dotnet workload clean` command removes workload components that might have been left behind from previous updates and uninstallations. |
| ms.date | 09/29/2025 |
This article applies to: ✔️ .NET 6 SDK and later versions
dotnet workload clean - Removes workload components that might have been left behind from previous updates and uninstallations.
dotnet workload clean [options]
dotnet workload clean -?|-h|--help
The dotnet workload clean command removes all workload components that have been uninstalled.
For more information about the dotnet workload commands, see the dotnet workload install command.
-
--all
Removes and uninstalls all workload components from all SDK versions. Defaults to
false. -
[!INCLUDE help]
-
Remove all workflow components:
dotnet workload clean --all