{"id":270,"date":"2012-06-12T15:37:16","date_gmt":"2012-06-12T22:37:16","guid":{"rendered":"https:\/\/mmman.itgroove.net\/?p=270"},"modified":"2023-02-24T21:47:02","modified_gmt":"2023-02-24T21:47:02","slug":"deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell","status":"publish","type":"post","link":"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/","title":{"rendered":"Deleting (an Orphaned) SharePoint 2010 Meeting Workspace using PowerShell"},"content":{"rendered":"<p>I was recently asked to delete an orphaned meeting workspace for a client.&#160; I couldn\u2019t find anyone who\u2019d done this before on the old Google box on the internet machine, so I decided to write something for myself, using PowerShell.<\/p>\n<p>I did this by using the following PowerShell script (using the SharePoint 2010 Management Shell on a server in the SharePoint farm \u2013 not a traditional PowerShell console).<\/p>\n<p>Start by getting a reference to the site (web).<\/p>\n<p><font face=\"Courier New\">PS C:Usersspfulladmin&gt; $web = Get-SPWeb &quot;[my url]&quot; <\/font> &lt;\u2014This needs to be the URL to the meeting workspace (such as http:\/\/server\/teams\/meetingworkspace)<\/p>\n<p>Next, since I didn\u2019t know exactly what list I wanted to modify, I retrieved a collections of all the lists in the site.<\/p>\n<p><font face=\"Courier New\">PS C:Usersspfulladmin&gt; $web.Lists | select Title, BaseType<\/font><\/p>\n<p><font face=\"Courier New\">Title&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; BaseType     <br \/>&#8212;&#8211;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8212;&#8212;&#8211;      <br \/>Agenda&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; GenericList      <br \/>Attendees&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; GenericList      <br \/>Document Library&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DocumentLibrary      <br \/>fpdatasources&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DocumentLibrary      <br \/>Master Page Gallery&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DocumentLibrary      <br \/>Meeting Series&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; GenericList      <br \/>Objectives&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; GenericList      <br \/>Site Assets&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DocumentLibrary      <br \/>Site Pages&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DocumentLibrary      <br \/>Things To Bring&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; GenericList      <br \/>Workflow Tasks&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; GenericList      <br \/>Workspace Pages&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DocumentLibrary<\/font><\/p>\n<p>For meeting workspaces, the list we want to modify is \u201c<font face=\"Courier New\">Meeting Series<\/font>\u201d, so we\u2019ll select the items in that list.<\/p>\n<p><font face=\"Courier New\">PS C:Usersspfulladmin&gt; $items = $web.Lists[&quot;Meeting Series&quot;].items<\/font><\/p>\n<p>Now that we have the collection of items, we want to find out which index in the list we need to get (like in most programming languages, indexes start at 0, not 1).<\/p>\n<p><font face=\"Courier New\">PS C:Usersspfulladmin&gt; $items | select Title<\/font><\/p>\n<p><font face=\"Courier New\">Title     <br \/>&#8212;&#8211;      <br \/>dd2      <br \/>Group Call<\/font><\/p>\n<p>In this case, our orphaned meeting was named \u201cdd2\u201d, so we now know it\u2019s at index 0.&#160; <\/p>\n<p><font face=\"Courier New\">PS C:Usersspfulladmin&gt; $items[0].title     <br \/>dd2<\/font><\/p>\n<p>The next step is to simply select that item, and delete it.<\/p>\n<p><font face=\"Courier New\">PS C:Usersspfulladmin&gt; $items[0].delete()<\/font><\/p>\n<p>Now let\u2019s verify that the item is truly gone.<\/p>\n<p><font face=\"Courier New\">PS C:Usersspfulladmin&gt; $items | select Title<\/font><\/p>\n<p><font face=\"Courier New\">Title     <br \/>&#8212;&#8211;      <br \/>Group Call<\/font><\/p>\n<p>And that\u2019s it.&#160; Your orphaned meeting is cleaned up and will no longer appear for you in your meeting workspace.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was recently asked to delete an orphaned meeting workspace for a client.&#160; I couldn\u2019t find anyone who\u2019d done this before on the old Google box on the internet machine, so I decided to write something for myself, using PowerShell. I did this by using the following PowerShell script (using the SharePoint 2010 Management Shell &hellip; <a href=\"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-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>Deleting (an Orphaned) SharePoint 2010 Meeting Workspace 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\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deleting (an Orphaned) SharePoint 2010 Meeting Workspace using PowerShell - Archive\" \/>\n<meta property=\"og:description\" content=\"I was recently asked to delete an orphaned meeting workspace for a client.&#160; I couldn\u2019t find anyone who\u2019d done this before on the old Google box on the internet machine, so I decided to write something for myself, using PowerShell. I did this by using the following PowerShell script (using the SharePoint 2010 Management Shell &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Archive\" \/>\n<meta property=\"article:published_time\" content=\"2012-06-12T22:37:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-24T21:47:02+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/\",\"url\":\"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/\",\"name\":\"Deleting (an Orphaned) SharePoint 2010 Meeting Workspace using PowerShell - Archive\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/archive\/#website\"},\"datePublished\":\"2012-06-12T22:37:16+00:00\",\"dateModified\":\"2023-02-24T21:47:02+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b\"},\"breadcrumb\":{\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog Archive\",\"item\":\"https:\/\/regroove.ca\/archive\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deleting (an Orphaned) SharePoint 2010 Meeting Workspace 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":"Deleting (an Orphaned) SharePoint 2010 Meeting Workspace 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\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/","og_locale":"en_US","og_type":"article","og_title":"Deleting (an Orphaned) SharePoint 2010 Meeting Workspace using PowerShell - Archive","og_description":"I was recently asked to delete an orphaned meeting workspace for a client.&#160; I couldn\u2019t find anyone who\u2019d done this before on the old Google box on the internet machine, so I decided to write something for myself, using PowerShell. I did this by using the following PowerShell script (using the SharePoint 2010 Management Shell &hellip;","og_url":"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/","og_site_name":"Archive","article_published_time":"2012-06-12T22:37:16+00:00","article_modified_time":"2023-02-24T21:47:02+00:00","author":"Colin Phillips (Alumni)","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Colin Phillips (Alumni)","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/","url":"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/","name":"Deleting (an Orphaned) SharePoint 2010 Meeting Workspace using PowerShell - Archive","isPartOf":{"@id":"https:\/\/regroove.ca\/archive\/#website"},"datePublished":"2012-06-12T22:37:16+00:00","dateModified":"2023-02-24T21:47:02+00:00","author":{"@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b"},"breadcrumb":{"@id":"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/regroove.ca\/archive\/2012\/06\/12\/deleting-an-orphaned-sharepoint-2010-meeting-workspace-using-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Archive","item":"https:\/\/regroove.ca\/archive\/"},{"@type":"ListItem","position":2,"name":"Deleting (an Orphaned) SharePoint 2010 Meeting Workspace 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\/270"}],"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=270"}],"version-history":[{"count":1,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":1991,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/270\/revisions\/1991"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/media?parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/categories?post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/tags?post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}