spo navigation node remove
Removes the specified navigation node
Usage
m365 spo navigation node remove [options]
Options
-u, --webUrl <webUrl>Absolute URL of the site to which navigation should be modified
-l, --location <location>Navigation type where the node should be removed. Available options:
QuickLaunch,TopNavigationBar-i, --id <id>ID of the node to remove
-f, --forceDon't prompt for confirming removing the node
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
Remove a node from the top navigation. Will prompt for confirmation
m365 spo navigation node remove --webUrl https://contoso.sharepoint.com/sites/team-a --location TopNavigationBar --id 2003
Remove a node from the quick launch without prompting for confirmation
m365 spo navigation node remove --webUrl https://contoso.sharepoint.com/sites/team-a --location QuickLaunch --id 2003 --force
Response
The command won't return a response on success.