06-28-2019 01:25 PM
06-28-2019 01:25 PM
I am using the below API to delete the Team:
This successfully deletes the group, but it does not delete the team. I still see the team in the Microsoft Teams workspace as well as being able to get information about the team via Graph API.
Am I doing anything wrong here? The documentation says "Delete the team and its associated group." at https://docs.microsoft.com/en-us/graph/api/resources/team?view=graph-rest-1.0
07-09-2019 05:27 AM
@paulomi07 No, nothing wrong. This is the correct way to delete a Team through the API. Problem here is "timing": Teams and the Teams API (exposed through Graph) runs on its own backend, which caches information from Azure AD. Due to this, changes made on Azure AD side (like deleting the Group) don't translate immediately on the Teams side. It takes some time to become visible there.
By now, your Team should have disappeared from the list. If not, please let me know!
10-28-2019 05:52 AM - edited 10-28-2019 05:53 AM
I haven´t deployed this feature in production , but in some examples it took 24h. For me it should be almost immediate. The same when you delete an office 365 group and the SharePoint site stay for more than 24h. The process of deletion in graph api doesn´t work properly. @Yannick Reekmans
06-19-2020 05:45 AM
I second this, we have >24h delays at multiple customers. O365 group is deleted, but the MS Team remains listed in the Teams UI for quite some time...
10-02-2020 12:48 PM
Same for me. Did some performance testing (bulk creation of Teams, 1, 4, 8 concurrent worker process, to prep for a large migration), ended up with 1200 Teams in mijn 'developer' tenant.
Deleted Teams weeks ago (also double checked, all related items: Groups, sites are gone, also hard deleted / from recycle bin). Teams still show up in mijn webclient, desktop client (and even on a iPad with I connected to this tenant after the deletions).
Very anyoing, no way to reach the programmatically it seems, only thing I can do is to remove them 1 by 1 via GUI (I wasn't planning to do so ...).