You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>You are preparing the process and for mastering it, you have create / test / destroy / retry. But when you want to clean up your mess, you have to know that, during 30 days:</p>
344
344
<ul>
345
345
<li>Your Team still exists as a Group (you can find it in the "Deleted Groups" menu on AAD), same for the associated e-mail address</li>
346
-
<li>The Teams Site also still exists</li>
346
+
<li>The Team Site also still exists</li>
347
347
</ul>
348
348
<p>So let's says that you made a mistake during the creation of a Team and want to "start over" (with same name of course), if you don't want to wait for the Office 365 Job to update your environment and re-create the Team with same name:</p>
4</pre></div></td><tdclass="code"><divclass="codehilite"><pre><span></span><code><spanclass="c"># With the AAD PowerShell **2.0-preview** module</span>
3</pre></div></td><tdclass="code"><divclass="codehilite"><pre><span></span><code><spanclass="c1"># (As there's no CLI command to permanently delete a Group,</span>
395
397
<spanclass="c1"># you'll have to do it through the UI)</span>
<h2id="delete-team-if-necessary">Delete Team (if necessary)</h2>
401
403
<p>Sometimes, once a Group is permanently deleted, the Team still exists. If it's the case and once again, you don't want for the Job to delete it, you can do it yourself. But don't be surprise if the following commands throw an error : maybe the Job has already worked.</p>
402
-
<h3id="with-interface_1">With Interface</h3>
404
+
<h3id="delete-team-with-interface">Delete Team with Interface</h3>
403
405
<p>Throught the UI (if you have an owner account) or Admin Interface, you can delete the Team</p>
404
406
<p><imgalt="alt text" src="../../images/articles/20200211/delete-team-ui.png" title="Delete Team from UI" /></p>
405
407
<p><center><strong>OR</strong></center></p>
406
408
<p><imgalt="alt text" src="../../images/articles/20200211/delete-team-admin.png" title="Delete Team from Admin Interface" /></p>
407
-
<h3id="with-the-teams-powershell-module">With the Teams PowerShell module</h3>
<h2id="delete-site-collection">Delete Site Collection</h2>
415
420
<p>As I told you before (even if you did the previous steps), if you try to delete the Teams Site from the SharePoint Admin Center, you won't be able to remove it from the Site Collection Recycle Bin (because of the O365 Job Tenant update process).</p>
416
-
<h3id="with-code_1">With code</h3>
417
-
<p>So the solution here is to delete the Site with PowerShell (SharePoint PnP PoweShell module), like this:</p>
421
+
<h3id="delete-site-with-code">Delete site with code</h3>
7</pre></div></td><tdclass="code"><divclass="codehilite"><pre><span></span><code><spanclass="c"># If you are familiar with the Get-PnPStoredCredential cmdlet,</span>
431
+
7
432
+
8
433
+
9</pre></div></td><tdclass="code"><divclass="codehilite"><pre><span></span><code><spanclass="c"># If you are familiar with the Get-PnPStoredCredential cmdlet,</span>
428
434
<spanclass="c"># you can use it here with the "-Credential" Argument</span>
4</pre></div></td><tdclass="code"><divclass="codehilite"><pre><span></span><code><spanclass="c1"># (If it's already in Site Collection Recycle Bin, you'll have to delete it</span>
442
-
<spanclass="c1"># from the UI or through another API like SharePoint or Graph)</span>
449
+
4
450
+
5</pre></div></td><tdclass="code"><divclass="codehilite"><pre><span></span><code><spanclass="c1"># Remove the site</span>
451
+
spo site classic remove -u <spanclass="s2">"TeamsSiteUrl"</span> --skipRecycleBin --confirm --wait
443
452
444
-
spo site classic remove -u <spanclass="s2">"url"</span> --skipRecycleBin --confirm --wait
453
+
<spanclass="c1"># Remove the site from the Site Collection Recycle Bin</span>
<p>Of course, you could also make those tasks with the SharePoint Online Management Shell or with the Graph API, but here I've covered the most common ways of working with Teams / Group / SharePoint administration.</p>
Copy file name to clipboardExpand all lines: index.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -292,13 +292,13 @@ <h1>Home</h1>
292
292
293
293
<h2id="articles">Articles</h2>
294
294
<ul>
295
-
<li><ahref="articles/20200211-properly-remove-team/">2020-02-11 : How to quickly and properly delete a Team (without waiting)</a></li>
296
295
<li><ahref="articles/20201119-connect-to-sharepoint-apppermission-certificate-keyvault/">2020-11-19 : Connect to SharePoint in an AAD Application permission context with a certificate stored in Azure KeyVault</a></li>
296
+
<li><ahref="articles/20200211-properly-remove-team.md">2020-02-11 : How to quickly and properly delete a Team (without waiting)</a></li>
297
297
</ul>
298
298
<h2id="tips-tricks">Tips & Tricks</h2>
299
299
<ul>
300
-
<li><ahref="tips/20200213-csom-test-file-folder-existence/">2020-02-13 : [CSOM] Test in your C# code if a SharePoint File or Folder exists</a></li>
301
300
<li><ahref="tips/20200505-spfx-progressindicator-to-countdown-timer/">2020-05-05 : [SPFx] Transform the Fluent UI ProgressIndicator component into a countdown timer</a></li>
301
+
<li><ahref="tips/20200213-csom-test-file-folder-existence/">2020-02-13 : [CSOM] Test in your C# code if a SharePoint File or Folder exists</a></li>
0 commit comments