Delete bin & obj folders

jonassamuelsson

Jonas Samuelsson

Posted on August 20, 2020

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
💖 💪 🙅 🚩
jonassamuelsson
Jonas Samuelsson

Posted on August 20, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related