Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
royalswe
Helper I
Helper I

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

1 ACCEPTED SOLUTION
royalswe
Helper I
Helper I

I made my own little project that lists all workspaces that are empty and removes them if desired.

https://github.com/royalswe/PowerBI-bulk-delete-workspaces

View solution in original post

4 REPLIES 4
royalswe
Helper I
Helper I

I made my own little project that lists all workspaces that are empty and removes them if desired.

https://github.com/royalswe/PowerBI-bulk-delete-workspaces

v-lionel-msft
Community Support
Community Support

Hi @royalswe ,

 

The workspace administrator (the owner of the 365 group) can delete this workspace.

v-lionel-msft_1-1603094569468.png

 

v-lionel-msft_0-1603094405427.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

lbendlin
Super User
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.

@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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors