DEV Community


Delete bin & obj folders

jonassamuelsson profile image Jonas Samuelsson Updated on ・1 min read

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)

Forem Open with the Forem app