{"id":895,"date":"2013-06-26T15:25:03","date_gmt":"2013-06-26T22:25:03","guid":{"rendered":"https:\/\/mmman.itgroove.net\/?p=895"},"modified":"2023-02-24T21:48:42","modified_gmt":"2023-02-24T21:48:42","slug":"how-to-remove-a-quick-launch-item-using-powershell","status":"publish","type":"post","link":"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/","title":{"rendered":"How to Remove a Quick Launch Item using PowerShell"},"content":{"rendered":"<p>I was recently asked to remove a Quick Launch item in all quick launch menus across an entire web application.&nbsp; The following PowerShell will iterate over all webs in all sites in a web application searching for the menu item labelled \u201cBAD Quick Launch Item\u201d and will delete that node from each location.<\/p>\n<p><font face=\"Courier New\">$FindString = &#8220;BAD Quick Launch Item&#8221;<\/font><\/p>\n<p><font face=\"Courier New\">Get-SPWebApplication &#8220;<\/font><font face=\"Courier New\">http:\/\/webapplication.company.com&#8221;<\/font><font face=\"Courier New\"> | Get-SPSite -Limit ALL | Get-SPWeb -Limit ALL | ForEach-Object {<br \/>&nbsp;&nbsp;&nbsp; $web = $_<br \/>&nbsp;&nbsp;&nbsp; $_.Navigation.QuickLaunch | ForEach-Object {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $_.Children | ForEach-Object {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if($_.title -eq $FindString){<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $node = $_<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $node.delete()<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Write-Host &#8220;Deleted node from &#8221; $web &#8220;-&#8221; $web.url<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br \/>&nbsp;&nbsp;&nbsp; }<br \/>}<\/font><\/p>\n<p>Hopefully this helps anyone else in the same situation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was recently asked to remove a Quick Launch item in all quick launch menus across an entire web application.&nbsp; The following PowerShell will iterate over all webs in all sites in a web application searching for the menu item labelled \u201cBAD Quick Launch Item\u201d and will delete that node from each location. $FindString = &hellip; <a href=\"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/\"><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[31,7],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Remove a Quick Launch Item using PowerShell - Archive<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Remove a Quick Launch Item using PowerShell - Archive\" \/>\n<meta property=\"og:description\" content=\"I was recently asked to remove a Quick Launch item in all quick launch menus across an entire web application.&nbsp; The following PowerShell will iterate over all webs in all sites in a web application searching for the menu item labelled \u201cBAD Quick Launch Item\u201d and will delete that node from each location. $FindString = &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Archive\" \/>\n<meta property=\"article:published_time\" content=\"2013-06-26T22:25:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-24T21:48:42+00:00\" \/>\n<meta name=\"author\" content=\"Colin Phillips (Alumni)\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Colin Phillips (Alumni)\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/\",\"url\":\"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/\",\"name\":\"How to Remove a Quick Launch Item using PowerShell - Archive\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/archive\/#website\"},\"datePublished\":\"2013-06-26T22:25:03+00:00\",\"dateModified\":\"2023-02-24T21:48:42+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b\"},\"breadcrumb\":{\"@id\":\"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog Archive\",\"item\":\"https:\/\/regroove.ca\/archive\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Remove a Quick Launch Item using PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/regroove.ca\/archive\/#website\",\"url\":\"https:\/\/regroove.ca\/archive\/\",\"name\":\"Archive\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/regroove.ca\/archive\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b\",\"name\":\"Colin Phillips (Alumni)\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g\",\"caption\":\"Colin Phillips (Alumni)\"},\"url\":\"https:\/\/regroove.ca\/archive\/author\/cphillips\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Remove a Quick Launch Item using PowerShell - Archive","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/","og_locale":"en_US","og_type":"article","og_title":"How to Remove a Quick Launch Item using PowerShell - Archive","og_description":"I was recently asked to remove a Quick Launch item in all quick launch menus across an entire web application.&nbsp; The following PowerShell will iterate over all webs in all sites in a web application searching for the menu item labelled \u201cBAD Quick Launch Item\u201d and will delete that node from each location. $FindString = &hellip;","og_url":"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/","og_site_name":"Archive","article_published_time":"2013-06-26T22:25:03+00:00","article_modified_time":"2023-02-24T21:48:42+00:00","author":"Colin Phillips (Alumni)","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Colin Phillips (Alumni)","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/","url":"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/","name":"How to Remove a Quick Launch Item using PowerShell - Archive","isPartOf":{"@id":"https:\/\/regroove.ca\/archive\/#website"},"datePublished":"2013-06-26T22:25:03+00:00","dateModified":"2023-02-24T21:48:42+00:00","author":{"@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b"},"breadcrumb":{"@id":"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/regroove.ca\/archive\/2013\/06\/26\/how-to-remove-a-quick-launch-item-using-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Archive","item":"https:\/\/regroove.ca\/archive\/"},{"@type":"ListItem","position":2,"name":"How to Remove a Quick Launch Item using PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/regroove.ca\/archive\/#website","url":"https:\/\/regroove.ca\/archive\/","name":"Archive","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/regroove.ca\/archive\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b","name":"Colin Phillips (Alumni)","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g","caption":"Colin Phillips (Alumni)"},"url":"https:\/\/regroove.ca\/archive\/author\/cphillips\/"}]}},"_links":{"self":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/895"}],"collection":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/comments?post=895"}],"version-history":[{"count":1,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/895\/revisions"}],"predecessor-version":[{"id":1922,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/895\/revisions\/1922"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/media?parent=895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/categories?post=895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/tags?post=895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}