how to delete bin and obj folders in current folder

Example

function global:Delete-BinObj()
{
    $path = join-path $solutionScriptsContainer '..' -resolve
    Get-ChildItem $path -include bin,obj -recurse -Force | remove-item -force -recurse
}

Copy and Try it

OR

Example

$path = join-path c:\test\Project '..' -resolve
Get-ChildItem $path -include bin,obj -recurse -Force | remove-item -force -recurse

Copy and Try it