06-28-2019 01:25 PM
I am using the below API to delete the Team:
DELETE https://graph.microsoft.com/v1.0/groups/{id}
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
Thanks,
Paulomi
06-30-2019 11:24 PM
@paulomi07 A group in Microsoft Teams can be deleted whereas a team is archived. Could you please try Archive team and see if that helps?
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-04-2019 01:47 AM
@Yannick Reekmans How much time takes to be deleted ? Because depending of team is 1 hour , some times is 3 h , 1 day.
It´s hard to explain to the users this behavior.
10-04-2019 01:50 AM
@Ruben Toribio There isn't a "fixed" timing, we're seeing the same type of delays...
10-04-2019 01:51 AM
10-07-2019 01:24 AM
@Ruben Toribio Are you seeing delays that are longer than 24h? 24h should be the maximum delay...
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