A simple .NET console utility to recursively delete bin and obj folders from your projects.
- ποΈ Recursively searches through directories
- π― Targets only
binandobjfolders (case-insensitive) - π‘οΈ Safe operation with error handling
- π¦ Self-contained executable (no .NET runtime required)
- β‘ Fast and lightweight
- Download the latest release from the Releases page
- Extract the executable
- Run:
NukeBin.exe <path>
- Download
NukeBin.exeandinstall.ps1 - Run PowerShell as Administrator
- Execute:
.\install.ps1 -AddToPath
This will install NukeBin to %USERPROFILE%\Tools\NukeBin and add it to your PATH.
- Clone this repository
- Run:
.\build.ps1 - Run:
.\install.ps1 -AddToPath
NukeBin <path># Clean current directory
NukeBin .
# Clean specific project
NukeBin C:\MyProject
# Clean solution directory
NukeBin C:\MySolution.\install.ps1 [options]
Options:
-InstallPath <path> Installation directory (default: %USERPROFILE%\Tools\NukeBin)
-AddToPath Add NukeBin to system PATH
-Force Overwrite existing installation# Basic installation
.\install.ps1
# Install to custom location
.\install.ps1 -InstallPath "C:\Tools\NukeBin"
# Install and add to PATH
.\install.ps1 -AddToPath
# Force reinstall
.\install.ps1 -Force -AddToPath- .NET 8.0 SDK
- PowerShell (for build scripts)
-
Clone the repository
git clone https://github.com/yourusername/NukeBin.git cd NukeBin -
Build the project
.\build.ps1 -
Install locally
.\install.ps1 -AddToPath
# Restore packages
dotnet restore
# Build
dotnet build --configuration Release
# Publish self-contained executable
dotnet publish --configuration Release --runtime win-x64 --self-contained true --output ./publish- Single
.exefile with no dependencies - Works on any Windows machine
- Larger file size (~50MB)
- Requires .NET 8.0 Runtime
- Smaller file size (~150KB)
- Better for development environments
- Automated builds via GitHub Actions
- Multiple platform support
- Versioned releases
- Build the executable:
.\build.ps1 - Copy
NukeBin.exeto shared network location - Team members can run directly or copy to local machine
- Use Chocolatey, NuGet, or similar package manager
- Create internal package repository
- Team members install via package manager
- Tag a release:
git tag v1.0.0 - Push tags:
git push --tags - GitHub Actions will automatically build and create release
- Team members download from releases page
- β
Only deletes folders named exactly
binorobj - β Case-insensitive matching
- β Recursive directory traversal
- β Error handling for permission issues
- β Progress feedback during operation
- β Confirmation of deleted folders
- Run as Administrator if accessing system directories
- Check folder permissions
- Ensure folders are not in use by other applications
- Verify the path exists
- Use absolute paths if relative paths fail
- Check for typos in the path
If you get execution policy errors:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Initial release
- Recursive bin/obj folder deletion
- Self-contained executable
- PowerShell installer
- GitHub Actions CI/CD
This code and almost everything in this repo was generated with AI. So, if this project nukes more than your bin folders, don't blame me, blame skynet π.