pipeline remove all bin obj project

C++
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse }

Source

Also in C++: