Delete Multiple Microsoft Teams, Teams PowerShell

In this blog post, I will show you how I delete multiple Microsoft Teams, Teams using PowerShell and a CSV file.

Get Teams GroupID

I will start with first exporting all the Teams that I have to a CSV file using the following cmdlet.

Get-team | export-csv delete.csv


The file that I exported using the above cmdlet is in the snapshot below.

I will go ahead and remove all the teams that I need to keep and leave the one the I need to delete.

Note: Make sure leave in the CSV file only the Teams you need to delete.


Using the updated CSV file, I now have the list of all the Teams that I need to delete.

I’ll run the following cmdlet which will delete all the teams.

Import-csv delete.csv | foreach{remove-Team -groupid $_.groupid }