Forum Discussion
JonBow
Sep 27, 2018Copper Contributor
Removing unused SDS Teams
Hello everyone - long time reader, first time asker here! A mistake has been made whereby we have used SDS to create Teams for every class in school, when in fact only select classes were suppose...
- Sep 28, 2018
Appreciate your reply, thank you. I wondered if this was the solution - shame the Teams cmdlet didn't work, but I suppose it is still in Beta.
For reference, once you have the IDs of the Teams/Groups you want to remove, the following is the correct Powershell
Connect-MsolService
remove-msolgroup -objectid "<groupID>" -forceNote: the
-force
means it doesn't ask for confirmation.
So use this with caution people :)
Deleted
Sep 28, 2018Not sure why remove-team fails, but you could just delete the team by deleting the Office Group using Azure AD or Exchange Online cmdlets.
JonBow
Sep 28, 2018Copper Contributor
Appreciate your reply, thank you. I wondered if this was the solution - shame the Teams cmdlet didn't work, but I suppose it is still in Beta.
For reference, once you have the IDs of the Teams/Groups you want to remove, the following is the correct Powershell
Connect-MsolService
remove-msolgroup -objectid "<groupID>" -force
Note: the
-force
means it doesn't ask for confirmation.
So use this with caution people :)