Skip to content

Commit c4408f3

Browse files
author
committed
Deployed 39af170 with MkDocs version: 1.2.2
1 parent b074136 commit c4408f3

File tree

5 files changed

+69
-55
lines changed

5 files changed

+69
-55
lines changed

articles/20200211-properly-remove-team/index.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -387,24 +387,25 @@ <h3 id="delete-group-with-interface">Delete Group with Interface</h3>
387387
<p><img alt="alt text" src="../../images/articles/20200211/delete-group.png" title="Delete Group" /></p>
388388
<p><img alt="alt text" src="../../images/articles/20200211/perm-delete-group.png" title="Permanently Delete Group" /></p>
389389
<h3 id="delete-group-with-code">Delete Group with code</h3>
390-
<div class="tabbed-set" data-tabs="1:1"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><label for="__tabbed_1_1">Azure AD PowerShell</label><div class="tabbed-content"></div>
391-
</div>
390+
<div class="tabbed-set" data-tabs="1:2"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><label for="__tabbed_1_1">Azure AD PowerShell</label><div class="tabbed-content">
392391
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
393392
<span class="normal">2</span>
394393
<span class="normal">3</span></pre></div></td><td class="code"><div class="highlight"><pre><span></span><code><span class="nb">Connect-AzureAD</span> <span class="n">-TenantId</span> <span class="s2">&quot;TenantId&quot;</span>
395394
<span class="nb">Remove-AzureADGroup</span> <span class="n">-ObjectId</span> <span class="s2">&quot;GroupId&quot;</span>
396395
<span class="nb">Remove-AzureADMSDeletedDirectoryObject</span> <span class="n">-Id</span> <span class="s2">&quot;GroupId&quot;</span>
397396
</code></pre></div>
398397
</td></tr></table>
399-
<div class="tabbed-set" data-tabs="2:1"><input checked="checked" id="__tabbed_2_1" name="__tabbed_2" type="radio" /><label for="__tabbed_2_1">CLI for Microsoft 365</label><div class="tabbed-content"></div>
400398
</div>
399+
<input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><label for="__tabbed_1_2">CLI for Microsoft 365</label><div class="tabbed-content">
401400
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
402401
<span class="normal">2</span>
403402
<span class="normal">3</span></pre></div></td><td class="code"><div class="highlight"><pre><span></span><code><span class="c1"># (As there&#39;s no CLI command to permanently delete a Group,</span>
404403
<span class="c1"># you&#39;ll have to do it through the UI)</span>
405404
aad o365group remove --id <span class="s2">&quot;GroupId&quot;</span> --confirm
406405
</code></pre></div>
407406
</td></tr></table>
407+
</div>
408+
</div>
408409
<h2 id="delete-team-if-necessary">Delete Team (if necessary)</h2>
409410
<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>
410411
<h3 id="delete-team-with-interface">Delete Team with Interface</h3>
@@ -413,18 +414,18 @@ <h3 id="delete-team-with-interface">Delete Team with Interface</h3>
413414
<p><center><strong>OR</strong></center></p>
414415
<p><img alt="alt text" src="../../images/articles/20200211/delete-team-admin.png" title="Delete Team from Admin Interface" /></p>
415416
<h3 id="delete-team-with-code">Delete Team with code</h3>
416-
<div class="tabbed-set" data-tabs="3:1"><input checked="checked" id="__tabbed_3_1" name="__tabbed_3" type="radio" /><label for="__tabbed_3_1">Microsoft Teams PowerShell</label><div class="tabbed-content"></div>
417-
</div>
417+
<div class="tabbed-set" data-tabs="2:1"><input checked="checked" id="__tabbed_2_1" name="__tabbed_2" type="radio" /><label for="__tabbed_2_1">Microsoft Teams PowerShell</label><div class="tabbed-content">
418418
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
419419
<span class="normal">2</span></pre></div></td><td class="code"><div class="highlight"><pre><span></span><code><span class="nb">Connect-MicrosoftTeams</span> <span class="n">-TenantId</span> <span class="s2">&quot;TenantId&quot;</span>
420420
<span class="nb">Remove-Team</span> <span class="n">-GroupId</span> <span class="s2">&quot;GroupId&quot;</span>
421421
</code></pre></div>
422422
</td></tr></table>
423+
</div>
424+
</div>
423425
<h2 id="delete-site-collection">Delete Site Collection</h2>
424426
<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>
425427
<h3 id="delete-site-with-code">Delete site with code</h3>
426-
<div class="tabbed-set" data-tabs="4:1"><input checked="checked" id="__tabbed_4_1" name="__tabbed_4" type="radio" /><label for="__tabbed_4_1">PnP PowerShell</label><div class="tabbed-content"></div>
427-
</div>
428+
<div class="tabbed-set" data-tabs="3:2"><input checked="checked" id="__tabbed_3_1" name="__tabbed_3" type="radio" /><label for="__tabbed_3_1">PnP PowerShell</label><div class="tabbed-content">
428429
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
429430
<span class="normal">2</span>
430431
<span class="normal">3</span>
@@ -444,8 +445,8 @@ <h3 id="delete-site-with-code">Delete site with code</h3>
444445
<span class="nb">Clear-PnPTenantRecycleBinItem</span> <span class="n">-Url</span> <span class="s2">&quot;TeamsSiteUrl&quot;</span> <span class="n">-Force</span> <span class="n">-Wait</span>
445446
</code></pre></div>
446447
</td></tr></table>
447-
<div class="tabbed-set" data-tabs="5:1"><input checked="checked" id="__tabbed_5_1" name="__tabbed_5" type="radio" /><label for="__tabbed_5_1">CLI for Microsoft 365</label><div class="tabbed-content"></div>
448448
</div>
449+
<input id="__tabbed_3_2" name="__tabbed_3" type="radio" /><label for="__tabbed_3_2">CLI for Microsoft 365</label><div class="tabbed-content">
449450
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
450451
<span class="normal">2</span>
451452
<span class="normal">3</span>
@@ -457,6 +458,8 @@ <h3 id="delete-site-with-code">Delete site with code</h3>
457458
spo tenant recyclebinitem remove -u <span class="s2">&quot;TeamsSiteUrl&quot;</span> --confirm --wait
458459
</code></pre></div>
459460
</td></tr></table>
461+
</div>
462+
</div>
460463
<h2 id="thats-it">That's it</h2>
461464
<p>Et voilà ! You can start over your process until it's ready to use.</p>
462465
<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>

0 commit comments

Comments
 (0)