Forem

Jonas Samuelsson
Jonas Samuelsson

Posted on • Edited on

3 1

Delete bin & obj folders

I sometimes find myself in a situation where I need to delete the bin/obj folders for one or many .net projects.

Boot up powershell and navigate to the root of what needs to be deleted.

Beware, do not run this command in a system folder or terrible things will happen!! 😱

Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay