Remove generated bin and obj directories from Visual Studio solutions and projects.
Remove Obj And Bin provides both an interactive cleanup dialog and a silent cleanup mode. It safely scans the selected root directory, removes only exact bin and obj folders, continues after individual failures, and reports detailed results in the Visual Studio Output window.
Supports Visual Studio 2022 version 17.14.36 or later and Visual Studio 2026.
Source code: https://bitbucket.org/keepquesting/removeobjandbin/src/master/
Usage
Build menu
Open a solution and select:
Build → Remove Bin/Obj
When Silent mode is disabled, the cleanup dialog opens with the configured path for the current solution. Review or edit the path and select Clean.
When Silent mode is enabled, cleanup starts immediately without opening the dialog.

Solution Explorer
Right-click a solution or project and select:
Remove Bin/Obj
- For a solution, the directory containing the solution file is used.
- For a project, the selected project directory is used.
- The command uses the globally configured Silent mode.

Extensions menu
Open:
Extensions → Remove Bin/Obj
Available commands:
- Run - always opens the cleanup dialog.
- Silent Run - always starts cleanup without the dialog.
- Settings - opens extension settings.
- About - displays extension information and the source repository link.
The explicit Run and Silent Run commands are not affected by the global Silent mode setting.

Settings
Open:
Extensions → Remove Bin/Obj → Settings
Default path
Defines the default cleanup directory for the current solution.
The value is stored separately for each solution. If no custom path is configured, the directory containing the current solution file is used.
Silent mode
Controls whether commands from the Build menu and Solution Explorer run without opening the cleanup dialog.
Silent mode is a global setting shared by all solutions.
Silent mode panel
Choose how the progress panel behaves during silent cleanup:
- Show during cleanup and hide after successful completion.
- Do not show during cleanup.
- Keep open after cleanup.
Cleanup results
The extension reports:
- Every
binorobjdirectory being processed. - The number of removed
bindirectories. - The number of removed
objdirectories. - Freed disk space.
- Total elapsed time.
- Directories that could not be removed and their errors.
Results are written to the dedicated Remove Bin/Obj channel in the Visual Studio Output window.
Features
- Remove exact
binandobjdirectories across a solution. - Clean only the selected project.
- Run from the Build menu.
- Run from Solution Explorer context menus.
- Use an editable, solution-specific cleanup path.
- Run with an interactive dialog or in silent mode.
- Configure the silent progress panel.
- Continue cleanup when individual directories cannot be removed.
- Display results and errors in the Visual Studio Output window.
- Follow the active Visual Studio light or dark theme.
- Protect the selected root boundary.
- Never follow symbolic links or junctions outside the selected root.
Safety
The extension removes only directories named exactly:
binobj
It does not select similar names such as binary, object, or obj_backup.
The cleanup dialog displays the complete root path before the operation starts. Selecting Clean starts the cleanup immediately without additional confirmation prompts.
The Visual Studio extension does not remove the .vs directory.