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
Anonymous
Not applicable

Deleting a dashboard via the API

With the API I can create a dashboard in a workspace, just by giving a name. I can then clone tiles into it from another workspace.

 

However there doesn't appear to be a way to delete such a workspace. So any automated integration I write to publish a dashboard (say by cloning from a reference workspace) will accumulate old versions of the workspace, all with the same name.

 

I tried tracing what the PowerBI UI does but it "cheats". It sends DELETE to:

 

https://wabi-north-europe-redirect.analysis.windows.net/powerbi/metadata/dashboards/<some-id>

 

But the <some-id> is an integer, not the usual GUID-like ID we have access to.

 

Does anyone know a working way to delete a dashboard from a workspace programatically?

2 REPLIES 2
v-ljerr-msft
Employee
Employee

Hi @Anonymous,

 

Deleting a dashboard via the Power BI Rest API is not supported currently. For anyone who also need this feature, please vote the idea shared by @Anonymous here and add your comments there to improve Power BI on this feature. Smiley Happy

 

Regards

To quote some guidance published earlier this year:

 

With Power BI workspace-based isolation, an application developer might need to manage hundreds or thousands of artifacts. It’s essential to define the processes that frequently happen in your application lifecycle management, and ensure you have the right set of tools to perform these operations at scale in this tenancy model. Some example operations include:

 

  • Adding a new tenant (customer)
  • Updating a report or dashboard for some or all the tenants
  • Updating the dataset schema for some or all the tenants
  • Unplanned customizations for specific tenants
  • Frequency of dataset refreshes

For example, creating a workspace for a new tenant is a common task, which needs automation. With the Power BI REST API, you can achieve full automation when creating workspaces.

 

-- From https://docs.microsoft.com/en-us/power-bi/developer/embed-multi-tenancy

 

Specifically:

 

"It’s essential... ensure you have the right set of tools to perform these operations at scale..."

 

That's what I'm trying to make you do here. You have an API that allows me to create a dashboard programmatically and then clone tiles into it from a "template" dashboard in another workspace.

 

But you have forgotten to provide an API to allow me to programmatically delete a dashboard.

 

It's really that simple. The API should be symmetrical: what it can create, it must be able to delete.

 

This is not an idea that I invented and need to get votes before you take it seriously. It's a basic, obvious derived fact about your API, and the omission of it is clearly a bug. Please address it.

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 Kudoed Authors