Forum Discussion
Delete all empty workspaces that are created by 365 groups
Does anyone have a solution to delete all empty workspaces that has been created by defaAult when creating a 365 group?
We have around 1000 of workspaces that are created from 365 groups and most of them are empty.
I have allready enabled the new future to not create new workspaces from 365 groups.
Cheers
I made my own little project that lists all workspaces that are empty and removes them if desired.
4 Replies
- lbendlin
Super User
Are you aware of the Power BI API calls?
https://docs.microsoft.com/en-us/rest/api/power-bi/admin/capacities_unassignworkspacesfromcapacity
You can run these calls from your favorite process tool, for example from Powershell.
- royalswe
Helper I
lbendlin thanks but I'm not sure how to use the API cal to remove empty workspaces.
v-lionel-msft thanks but i'm trying to find a way to remove 1000 of groups at once without asking people to clean up.
- v-lionel-msft
Community Support
Hi royalswe ,
The workspace administrator (the owner of the 365 group) can delete this workspace.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- royalswe
Helper I
I made my own little project that lists all workspaces that are empty and removes them if desired.