cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
danielearwicker Frequent Visitor
Frequent Visitor

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 Super Contributor
Super Contributor

Re: Deleting a dashboard via the API

Hi @danielearwicker,

 

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 @danielearwicker here and add your comments there to improve Power BI on this feature. Smiley Happy

 

Regards

dearwicker Frequent Visitor
Frequent Visitor

Re: Deleting a dashboard via the API

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
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 199 members 1,962 guests
Please welcome our newest community members: