Forum Discussion
Deleting a dashboard via the API
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. :smileyhappy:
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.