DEV Community

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

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

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

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay