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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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