I need to delete all site collections that contains personal in it. I get all the site collections by the cmdlet
$sites= get-spsite -limit all| Where {$_.url -like "*personal*"}
foreach($site in $sites)
{
Remove-spsite -identity $site
}
I get an error cannot convert spsite to Spsitepipebind