Delete a Team without deleting the Group

%3CLINGO-SUB%20id%3D%22lingo-sub-42733%22%20slang%3D%22en-US%22%3EDelete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42733%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20does%20not%20seem%20to%20be%20a%20mechanism%20to%20delete%20a%20Team%20without%20deleting%20the%20associated%20Office%20365%20Group.%3C%2FP%3E%3CP%3EThis%20is%20annoying%2C%20since%20we%20have%20many%20Offie%20365%20Groups%20that%20are%20used%20for%20other%20purposes%20(controlling%20access%20-%20security)%20and%20we're%20having%20Teams%20created%20for%20them%20by%20their%20owners%20that%20are%20junk%20and%20un-needed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-42733%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-275687%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-275687%22%20slang%3D%22en-US%22%3EHere's%20a%20new%20link%20I%20found%3A%20%3CA%20href%3D%22https%3A%2F%2Fmicrosoftteams.uservoice.com%2Fforums%2F555103-public%2Fsuggestions%2F32150107-delete-team-without-deleting-office-group%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmicrosoftteams.uservoice.com%2Fforums%2F555103-public%2Fsuggestions%2F32150107-delete-team-without-deleting-office-group%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-135097%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-135097%22%20slang%3D%22en-US%22%3E%3CP%3EYes!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-105311%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-105311%22%20slang%3D%22en-US%22%3EThat%20idea%20has%20been%20deleted%20%3A(%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-63489%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63489%22%20slang%3D%22en-US%22%3E%3CP%3ELet%20me%20cutting%20in%20for%20just%20a%20question.%20Module%20v2%20is%20not%20in%20product%20but%20in%20preview%20at%20this%20moment%2C%20right%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-63171%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63171%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20is%20posible%20to%20restore%20a%20removed%20Group%20it%20will%20also%20restore%20the%20Team%20if%20a%20Team%20was%20created%20for%20that%20group.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20need%20the%20lastest%20azure%20ad%20powershell%20module%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fazuread%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Active%20Directory%20PowerShell%20Version%202.%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20that%20execute%20the%20following%20commands.%3C%2FP%3E%3CPRE%3EGet-AzureADMSDeletedGroup%3C%2FPRE%3E%3CPRE%3ERestore-AzureADMSDeletedDirectoryObject%20%E2%80%93Id%20%26lt%3BobjectId%26gt%3B%3C%2FPRE%3E%3CP%3ETo%20check%20if%20the%20group%20really%20is%20restored%20you%20can%20execute%20the%20following%20command.%3C%2FP%3E%3CPRE%3EGet-AzureADGroup%20%E2%80%93ObjectId%20%26lt%3BobjectId%26gt%3B%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%20that%20it%20can%20take%20up%20to%2072%20hours%20before%20a%20complete%20restore%20has%20finisched%2C%20this%20depends%20on%20hom%20many%20data%20was%20in%20the%20Group%2FTeam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-53320%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-53320%22%20slang%3D%22en-US%22%3EJust%20came%20on%20to%20ask%20this%20very%20question.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20is%20quite%20a%20big%20deal%20IMO.%20Not%20surprising%20given%20what%20I%20call%20the%20%22we%20don't%20care%20about%20sprawl%22%20approach%20from%20Microsoft%20now.%20I'm%20sure%20this%20will%20be%20added%20in%20the%20future%2C%20but%20for%20now%2C%20just%20more%20digital%20garbage%20laying%20around%20our%20environments.%3CBR%20%2F%3E%3CBR%20%2F%3EI'll%20have%20to%20be%20careful%20with%20what%20Groups%20I%20demo%20Teams%20with.%3CBR%20%2F%3E%3CBR%20%2F%3ETo%20Noriko%20--%20this%20capability%20is%20coming%20to%20retrieve%20deleted%20Groups%20(been%20coming%20for%20a%20while)%2C%20but%20no%20telling%20if%20that%20is%20just%20for%20the%20Group%20itself%2C%20or%20the%20Group%20%2B%20Team%20(if%20team%20activated).%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-51760%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-51760%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20know...%20any%20ways%20to%20retrive%20deleted%20'group'%20%3F%20As%20per%20my%20testing%2C%20the%20answer%20will%20be%20%5BNo%5D%2C%20and%20files%20in%20that%20group%20are%20no%20longer%20available.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42847%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42847%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20is%20a%20suggestion%20available.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmicrosoftteams.uservoice.com%2Fforums%2F555103-public-preview%2Fsuggestions%2F17549323-ability-to-delete-team-without-deleting-associated%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmicrosoftteams.uservoice.com%2Fforums%2F555103-public-preview%2Fsuggestions%2F17549323-ability-to-delete-team-without-deleting-associated%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42804%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42804%22%20slang%3D%22en-US%22%3EYou%20are%20correct...Teams%20does%20not%20provide%20a%20way%20currently%20to%20only%20delete%20the%20Team%20Entity%20and%20leave%20the%20underlying%20Group...I'm%20not%20aware%20if%20there%20is%20an%20item%20in%20the%20roadmap%20in%20regards%20of%20this%20feature%20I%20agree%20is%20important%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2104564%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20a%20Team%20without%20deleting%20the%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2104564%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F38130%22%20target%3D%22_blank%22%3E%40Andrew%20Matthews%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

There does not seem to be a mechanism to delete a Team without deleting the associated Office 365 Group.

This is annoying, since we have many Offie 365 Groups that are used for other purposes (controlling access - security) and we're having Teams created for them by their owners that are junk and un-needed.

10 Replies
You are correct...Teams does not provide a way currently to only delete the Team Entity and leave the underlying Group...I'm not aware if there is an item in the roadmap in regards of this feature I agree is important

If you know... any ways to retrive deleted 'group' ? As per my testing, the answer will be [No], and files in that group are no longer available.

 

 

Just came on to ask this very question.

This is quite a big deal IMO. Not surprising given what I call the "we don't care about sprawl" approach from Microsoft now. I'm sure this will be added in the future, but for now, just more digital garbage laying around our environments.

I'll have to be careful with what Groups I demo Teams with.

To Noriko -- this capability is coming to retrieve deleted Groups (been coming for a while), but no telling if that is just for the Group itself, or the Group + Team (if team activated).

It is posible to restore a removed Group it will also restore the Team if a Team was created for that group.

 

You need the lastest azure ad powershell module Azure Active Directory PowerShell Version 2.

 

After that execute the following commands.

Get-AzureADMSDeletedGroup
Restore-AzureADMSDeletedDirectoryObject –Id <objectId>

To check if the group really is restored you can execute the following command.

Get-AzureADGroup –ObjectId <objectId>

 

Note that it can take up to 72 hours before a complete restore has finisched, this depends on hom many data was in the Group/Team

Let me cutting in for just a question. Module v2 is not in product but in preview at this moment, right?

That idea has been deleted :(