Edit

Share via


dotnet workload clean

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

Name

dotnet workload clean - Removes workload components that might have been left behind from previous updates and uninstallations.

Synopsis

dotnet workload clean [options]

dotnet workload clean -?|-h|--help

Description

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.

Options

  • --all

    Removes and uninstalls all workload components from all SDK versions. Defaults to false.

  • -?|-h|--help

    Prints out a description of how to use the command.

Examples

  • Remove all workflow components:

    dotnet workload clean --all