Forum Discussion

JonBow's avatar
JonBow
Copper Contributor
Sep 27, 2018
Solved

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...
  • JonBow's avatar
    JonBow
    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>" -force

     Note: the

    -force

     means it doesn't ask for confirmation.

     

    So use this with caution people :)

Resources