Created
October 9, 2025 12:46
-
-
Save hekystyle/97b21ee2700a05aded1a3427dcef6333 to your computer and use it in GitHub Desktop.
Recursively remove all bin and obj folder, usefull for .NET projects when there are weirdos errors while compiling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-ChildItem -Path "./" -Directory -Recurse -ErrorAction SilentlyContinue | Where-Object { $_.Name -ieq "bin" -or $_.Name -ieq "obj" } | Remove-Item -Recurse -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment