Skip to content

Instantly share code, notes, and snippets.

View drozdik-m's full-sized avatar

Martin Drozdík drozdik-m

View GitHub Profile
@drozdik-m
drozdik-m / Clean-DotNetProjects.ps1
Last active March 1, 2025 12:01
A PowerShell script that safely removes obj/bin folders in .NET projects. No accidental deletion of bin/obj folders from somewhere else. Supports -WhatIf.
<#
MIT License
Copyright (c) 2025 Ing. Martin Drozdík
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is