CleanAll 1.0.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global CleanAll --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local CleanAll --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CleanAll&version=1.0.0
                    
nuke :add-package CleanAll --version 1.0.0
                    

dotnet clean-all

A dotnet tool that permanently deletes all bin and obj folders from a C# Project or Solution.

Installation

To install globally, just run: dotnet tool install -g CleanAll

Usage

Delete all the bin\ and obj\ folders from all the projects in a solution:

Attempt to read the solution file, iterate through the projects and use msbuild to get the correct bin\ and obj\ folder paths.

CleanAll MyFolder\MyProject.slnx

Delete all from a project file:

Use msbuild to get the bin and obj folder paths.

CleanAll MyFolder\MyProject\MyProject.csproj

Delete all from the current directory (requires a solution or project file):

CleanAll

Test what the command would do without deleting anything (dry run):

CleanAll MyFolder --dry-run

Help docs:

CleanAll --help
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.1-alpha 39 11/24/2026
1.0.0 94 11/17/2026
1.0.0-alpha 86 11/17/2026
0.0.2.18 221 7/27/2026
0.0.2.18-alpha 135 7/26/2026
0.0.2.17 155 7/21/2026
0.0.2.17-alpha 135 7/21/2026
0.0.2.16 160 5/2/2026
0.0.2.16-alpha 133 5/2/2026
0.0.1.11 387 11/14/2025
0.0.1.11-alpha 364 11/14/2025
0.0.1.10 362 11/12/2025
0.0.1.10-alpha 348 11/12/2025
0.0.0.9-alpha 267 4/4/2025
0.0.0.8-alpha 251 4/1/2025
0.0.0.7-alpha 260 4/1/2025
0.0.0.6-alpha 258 3/30/2025
0.0.0.5-alpha 239 3/30/2025
0.0.0.4-alpha 242 3/30/2025
0.0.0.3-alpha 256 3/30/2025
Loading failed

- Upgrade to support .NET 10 & 11
- Upgrade to MinimalCli 3
- Upgrade to slnx file (CleanAll.sln becomes CleanAll.slnx)
- Upgrade CI/CD
- Modify clean command to only support Solution files and Project files
- Adjust docs