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
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.
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2020/04/041820_0308_DeleteMulti1.png)
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 }