PS
Powershell Tutorial Online

how to delete bin and obj folders in current folder

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