
$site=Get-SPSite "http://serverName:1111/sites/sample"
$web=$site.OpenWeb()
$nodeColl = $web.Navigation.TopNavigationBar
[int]$count=$nodeColl.Count
while($count -ne 0)
{
if ($nodeColl[$count-1].Title -eq "Subsite3")
{
$nodeColl[$count-1].Delete()
}
$count--
}

Join the conversation! Your thoughts help the community grow.