Can someone let me know how i can update/delete the global navigation link on my sharepoint online hub site?

It was created by someone else who is not with company anymore and i don't find a way to deal with it. I tried to read the navigation link but it just returns as 1. I dont find any option in site settings as well to check this.

$TopNavs = Get-PnPNavigationNode -Location TopNavigationBar | Select-Object Title,Url, Identer image description here

2 Answers 2


Go to settings-> Hub site settings, choose "Hidden in navigation". As the below picture shows:

enter image description here

  • Thank you so much for the screenshot. Wondering how did i miss this without checking the Site Settings menu.
    – G_S
    Commented Jul 9, 2020 at 13:11

You need to use the Set-NavigationNode, refer to the below sample code:

$navigationNodes = Get-PnPNavigationNode -Location $Location 

 foreach($navigationNode in $navigationNodes)

    $node = Get-PnPNavigationNode -Id $navigationNode.Id

 Set-NavigationNode $node




For details refer to the below article:

Update SharePoint Navigation After Site Rename

  • When i run below command i don't get result $navigationNodes = Get-PnPNavigationNode -Location "TopNavigationBar"
    – G_S
    Commented Jul 7, 2020 at 18:07
  • I need to update/delete which is highlighted in the image. Not the ones beside logo(Home,Documents, Site Contents..
    – G_S
    Commented Jul 7, 2020 at 18:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.