DEV Community

Jonas Samuelsson
Jonas Samuelsson

Posted on • Updated on

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 }

Discussion (0)