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
How to quickly and properly delete a Team (without waiting)
99
+
How to quickly and properly delete a Teams Team (without waiting)
100
100
101
101
</span>
102
102
</div>
@@ -344,28 +344,29 @@
344
344
345
345
346
346
347
-
<h1id="how-to-quickly-and-properly-delete-a-team-without-waiting">How to quickly and properly delete a Team (without waiting)</h1>
347
+
<h1id="how-to-quickly-and-properly-delete-a-teams-team-without-waiting">How to quickly and properly delete a Teams Team (without waiting)</h1>
348
348
<divclass="admonition note">
349
-
<pclass="admonition-title">Article update</p>
350
-
<p>2020-11-29 : I've updated the article following the update of the CLI for Microsoft 365, adding a new command for permanently delete a site collection.</p>
349
+
<pclass="admonition-title">Article updates</p>
350
+
<p><strong>2021-12-03</strong>: article update following CLI for Microsoft 365 updates, adding permanent AAD Group removal and Teams team deletion (optional), adding new PnP PowerShell commands.</p>
351
+
<p><strong>2020-11-29</strong>: article update following CLI for Microsoft 365 updates, adding a new command for permanently delete a Site Collection.</p>
351
352
</div>
352
353
<h2id="use-case">Use Case</h2>
353
354
<p>You work for a company that wants to automatically create a Team with Tabs, Channels and other stuff that will make a new project team ready to rock the stage.</p>
354
-
<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>
355
+
<p>You are preparing the process and for mastering it, you have createed / tested / destroyed / retried. But when you want to clean up your mess you have to know that, during 30 days:</p>
355
356
<ul>
356
357
<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>
357
-
<li>The Team Site also still exists</li>
358
+
<li>The Teams site also still exists</li>
358
359
</ul>
359
360
<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>
360
361
<ul>
361
362
<li>
362
-
<p>The SharePoint Site URL takes a number at the end of its address (of course, because the older one's still here)</p>
363
+
<p>The SharePoint site URL takes a number at the end of its address (of course, because the older one's still here)</p>
363
364
</li>
364
365
<li>
365
-
<p>You can't permanently delete the Teams Site, as the SharePoint Admin Center detects that the related Group still exists</p>
366
+
<p>You can't permanently delete the Teams site, as the SharePoint Admin Center detects that the related Group still exists</p>
366
367
</li>
367
368
</ul>
368
-
<p>Here's a step by step process to delete quickly a Team! I recommand to follow them in this order to make everything's work.</p>
369
+
<p>Here's a step by step process to delete quickly a Team! I recommend to follow them in this order to make everything's work.</p>
369
370
<h2id="prerequisites">Prerequisites</h2>
370
371
<ol>
371
372
<li>An Office 365 (Dev) Tenant or a Partner Demo Tenant</li>
<spanclass="normal">9</span></pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span><code><spanclass="c"># If you are familiar with the Get-PnPStoredCredential cmdlet,</span>
404
+
<spanclass="c"># you can use it here with the "-Credential" Argument</span>
<spanclass="normal">3</span></pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span><code><spanclass="c1"># (As there's no CLI command to permanently delete a Group,</span>
406
-
<spanclass="c1"># you'll have to do it through the UI)</span>
@@ -426,39 +464,19 @@ <h3 id="delete-team-with-code">Delete Team with code</h3>
426
464
</div>
427
465
</div>
428
466
<h2id="delete-site-collection">Delete Site Collection</h2>
429
-
<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>
467
+
<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>
430
468
<h3id="delete-site-with-code">Delete site with code</h3>
<spanclass="normal">9</span></pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span><code><spanclass="c"># If you are familiar with the Get-PnPStoredCredential cmdlet,</span>
441
-
<spanclass="c"># you can use it here with the "-Credential" Argument</span>
0 commit comments