SOLVED

Archiving or Deleting all Teams Groups in one go

%3CLINGO-SUB%20id%3D%22lingo-sub-1584744%22%20slang%3D%22en-US%22%3EArchiving%20or%20Deleting%20all%20Teams%20Groups%20in%20one%20go%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584744%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20Powershell%20script%20or%20any%20other%20method%20that%20will%20archive%20or%20delete%20all%20teams%20groups%20in%20one%20go.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20had%20the%20provisioning%20program%20completed%20but%20the%20groups%20were%20created%20from%20a%20one%20time%20sync%20from%20our%20MIS%20at%20the%20end%20of%20the%20term-%20groups%20will%20have%20changed%20and%20teachers%20that%20belong%20to%20them%20etc.%20So%20want%20to%20start%20a%20fresh.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3EJon%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1584744%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584780%22%20slang%3D%22en-US%22%3ERe%3A%20Archiving%20or%20Deleting%20all%20Teams%20Groups%20in%20one%20go%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584780%22%20slang%3D%22en-US%22%3EThere%20Night%20be%20Some%20out%20there%20you%20csn%20searches%20for!%20Otherwise%20just%20yes%20the%20get%20team%20%7C%20delete%20team%20and%20a%20loop%20in%20a%20script!%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584787%22%20slang%3D%22en-US%22%3ERe%3A%20Archiving%20or%20Deleting%20all%20Teams%20Groups%20in%20one%20go%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584787%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20a%20complete%20novice%20at%20Powershell%20as%20I%20am%20just%20a%20teacher%20trying%20to%20sort%20it%20out.%20But%20thank%20you%20for%20the%20help.%20I%20have%20tried%20searching%20but%20not%20come%20up%20with%20anything%20as%20of%20yet.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72542%22%20target%3D%22_blank%22%3E%40adam%20deltinger%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584796%22%20slang%3D%22en-US%22%3ERe%3A%20Archiving%20or%20Deleting%20all%20Teams%20Groups%20in%20one%20go%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584796%22%20slang%3D%22en-US%22%3ESee%20here%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.ntweekly.com%2F2020%2F04%2F18%2Fdelete-multiple-microsoft-teams-teams-powershell%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.ntweekly.com%2F2020%2F04%2F18%2Fdelete-multiple-microsoft-teams-teams-powershell%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ETeams%20Powershell%20module%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fteams-powershell-install%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fteams-powershell-install%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584807%22%20slang%3D%22en-US%22%3ERE%3A%20Archiving%20or%20Deleting%20all%20Teams%20Groups%20in%20one%20go%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584807%22%20slang%3D%22en-US%22%3EMr.%20Redmond%20has%20a%20ready-to-use%20script%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Foffice365itpros.com%2F2020%2F07%2F03%2Farchiving-microsoft-365-groups-teams-powershell%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365itpros.com%2F2020%2F07%2F03%2Farchiving-microsoft-365-groups-teams-powershell%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584808%22%20slang%3D%22en-US%22%3ERE%3A%20Archiving%20or%20Deleting%20all%20Teams%20Groups%20in%20one%20go%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584808%22%20slang%3D%22en-US%22%3EThanks%20for%20this%20-i'd%20seen%20this%20but%20I%20cant%20make%20head%20nor%20tail%20of%20it!%20I'll%20try%20it%20again.%20Thank%20you%20for%20the%20help.%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hello,

 

Is there a Powershell script or any other method that will archive or delete all teams groups in one go.

 

We have had the provisioning program completed but the groups were created from a one time sync from our MIS at the end of the term- groups will have changed and teachers that belong to them etc. So want to start a fresh.

 

Thank you

Jon

5 Replies
Highlighted
There Night be Some out there you csn searches for! Otherwise just yes the get team | delete team and a loop in a script!

Adam
Highlighted

I am a complete novice at Powershell as I am just a teacher trying to sort it out. But thank you for the help. I have tried searching but not come up with anything as of yet.

@adam deltinger 

Highlighted
Best Response confirmed by ThereseSolimeno (Microsoft)
Highlighted
Thanks for this -i'd seen this but I cant make head nor tail of it! I'll try it again. Thank you for the help.