CleanAll 1.0.0
dotnet tool install --global CleanAll --version 1.0.0
dotnet new tool-manifest
dotnet tool install --local CleanAll --version 1.0.0
#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\andobj\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 | Versions 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. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 47 | 11/17/2026 |
| 1.0.0-alpha | 42 | 11/17/2026 |
| 0.0.2.18 | 220 | 7/27/2026 |
| 0.0.2.18-alpha | 134 | 7/26/2026 |
| 0.0.2.17 | 152 | 7/21/2026 |
| 0.0.2.17-alpha | 133 | 7/21/2026 |
| 0.0.2.16 | 158 | 5/2/2026 |
| 0.0.2.16-alpha | 131 | 5/2/2026 |
| 0.0.1.11 | 385 | 11/14/2025 |
| 0.0.1.11-alpha | 362 | 11/14/2025 |
| 0.0.1.10 | 361 | 11/12/2025 |
| 0.0.1.10-alpha | 347 | 11/12/2025 |
| 0.0.0.9-alpha | 266 | 4/4/2025 |
| 0.0.0.8-alpha | 250 | 4/1/2025 |
| 0.0.0.7-alpha | 258 | 4/1/2025 |
| 0.0.0.6-alpha | 254 | 3/30/2025 |
| 0.0.0.5-alpha | 237 | 3/30/2025 |
| 0.0.0.4-alpha | 240 | 3/30/2025 |
| 0.0.0.3-alpha | 254 | 3/30/2025 |
| 0.0.0.2-alpha | 246 | 3/30/2025 |
- 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