Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I need to delete all navigation from SharePoint site and subsites. please suggest any idea to do in powershell script.
Try below code:
$siteUrl = Get-SPSite "https://sitecollectionurl"
foreach ($spWeb in $siteUrl.AllWebs)
$nodeColl = $spWeb.Navigation.TopNavigationBar
while($count -ne 0)
Required, but never shown