Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I've a premium workspace that I want to delete. It has no content of any kind.
When I try to delete it via workspace setting I get the follow error message:
"Workspace can't be deleted"
This workspace is included in a deployment pipeline. Before deleting the workspace here, you must first remove it from the pipeline.
Please try again later or contact support. If you contact support, please provide these details.
I am admin of the workspace.
I have the Power BI Admin role.
The workspace is not in a pipeline.
I've run "GET api.powerbi.com/v1.0/myorg/pipelines to show my pipelines, and this workspace is not in a pipeline.
As a result I can't delete the workspace. I've got this on a small number of empty workspaces.
Any ideas, or anything else I can try?
We had the same issue some time ago. In our case, an orphaned pipeline caused the problem - the owner had left the company and we could only see the pipeline using the admin API.
Best;
Alisea
Heyy!
Did you manage to resolve this issue? I have the same.
Regards
Patryk
Hi @PKSI , @RMAHON , @flowerkowski , @carbobox , @Alisea_MI ,
I am wondering if there ever WAS a pipeline and it was deleted? If there is a pipeline that ownership needs to be taken over, then perhaps this thread helps?
Transferring ownership of reports in Power BI Serv... - Microsoft Fabric Community
If not, I would suggest that one of you with this issue contact Microsoft Support and see if they can give us all the right answer. You can contact them here: Power Platform admin center (microsoft.com)
Proud to be a Datanaut!
Private message me for consulting or training needs.
Yes, it our case it turned out to be an orphaned pipeline a colleague had left the company and didn't transfer the ownership. We managed to find it using some Admin APIs.
Alisea
Yes, this was same in our case. Using the Admin API we assigned new owner to the pipeline, deleted it and then deleted the workspace.
Hi @PKSI ,
If a workspace cannot be deleted because it is assigned to a deployment pipeline (the error message indicates it when trying to delete the ws and it doesn't have the button of 'create deployment pipeline' in the workspace page), then a Power BI admin should be able to use the admin APIs to view where the workspace is assigned to and then delete it. see more details here: Admin - Pipelines GetPipelinesAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Best,
Lee
Hi @carbobox, @otravers did you find a solution for this problem? From your screenshot I see that your workspace is in a pipeline called Development:
I have the same issue, I have not created the pipeline called Test for my workspace, I am admin of the workspace and Tenant admin and I cannot delete the pipeline if I did not create it:
If anyone has a solution for this I would be grateful.
I get the same error when calling the Delete Group API call:
Thanks.
Hi, @carbobox !
I am having exactly the same issue. Did you manage to solve yours?
Bets regards
Alisea
Have you seen the following thread? This could be a dependency across workspaces:
https://community.powerbi.com/t5/Service/Delete-workspace-in-pipeline/m-p/2482696
Hi,
Thanks for that, and the speedy reply.
I've seen that thread. There is no content in the workspace at all, so I can see there is no datasets from any another workspace.
There is no "Create a pipeline" option available, see the image, but it does appear to be in pipeline although, as mentioned, I've only one pipeline in my tenant, and this workspace is not in it. I was going to try the API to remove a workspace from an pipeline, but I can't do that because it's not in a pipeline (and the API needs the pipeline ID to remove the workspace).
I've aslo tried changing the workspace from a premium workspace to see if that change anything, but get the same error.
Thanks for your help.
Since you want to delete the workspace entirely, have you tried the following API call to see whether it accepts to work unlike the UI?
https://learn.microsoft.com/en-us/rest/api/power-bi/groups/delete-group
Hi,
Thanks, I tried, error stating connected to pipeline, like the UI:
{ "error": { "code": "ALM_InvalidRequest_CannotDisableFoldersThatAreConnectedToAnyALMPipeline", "pbi.error": { "code": "ALM_InvalidRequest_CannotDisableFoldersThatAreConnectedToAnyALMPipeline", "parameters": {}, "details": [], "exceptionCulprit": 1 } } }
Thanks
Hi Carbobox,
Did you resolve this? I have the same problem.
Regards
Rob
Hi,
Yes I resolved it with the REST APIs in powershell. This might save you some time:
Connect-PowerBIServiceAccount
# View all pipelines and get the GUID for the one you want to delete.
Invoke-PowerBIRestMethod -url 'https://api.powerbi.com/v1.0/myorg/admin/pipelines' -Method GET
# Add my service account to the pipeline
$body="{ 'identifier': 'Rufus@MYORG.onmicrosoft.com', 'accessRight': 'Admin', 'principalType': 'User'}"
Invoke-PowerBIRestMethod -url "https://api.powerbi.com/v1.0/myorg/admin/pipelines/{GUID}/users" -Method Post -body $body
# Delete the pipeline
Invoke-PowerBIRestMethod -url "https://api.powerbi.com/v1.0/myorg/pipelines/{GUID}" -Method Delete
# Check that it is deleted. (Error : ALM_InvalidRequest_PipelineNotFound expected)
Invoke-PowerBIRestMethod -url 'https://api.powerbi.com/v1.0/myorg/pipelines/{GUID}' -Method GET
# Delete the workspace, via the portal
Regards
Rob
I had the same problem, and your post here solved it! Thank you!
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.