cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jhyot Regular Visitor
Regular Visitor

Delete Report in Azure Workspace

Hi,

 

I've setup a WebApp that displays a PowerBI report (via PowerBI Embedded) in it. I followed every steps of the process, uploaded the .pbix file, and everything works fine in terms of display.

 

However, I would like to update this report with the .pbix file I have on my computer. Now I could update the new one under a different name, and setup my WebApp to only show the last report uploaded (and I'm not sure it would even work).

But what I'd much rather do is Replace of Delete the first report and upload a new one.

I've looked into the API documentation but I didn't find an obvious way to do it, so I'm not sure of how to proceed.

Let's assume I have access to everything from AccessKey, WorkspaceCollectionName, WorkspaceID and ReportId.

 

Can anyone help me with that ?

 

1 ACCEPTED SOLUTION

Accepted Solutions
runtim Frequent Visitor
Frequent Visitor

Re: Delete Report in Azure Workspace

http://stackoverflow.com/questions/36802875/powerbi-embedded-unable-to-delete-datasets

 

Apparently there was a bug in the DeleteDatasetById.  I verified that It is now working.

5 REPLIES 5
runtim Frequent Visitor
Frequent Visitor

Re: Delete Report in Azure Workspace

I am working on the same issue.  I am following information here:

 

https://msdn.microsoft.com/en-us/library/microsoft.powerbi.api.beta.datasets.aspx

 

So far I have tried the extension method "DeleteDatasetById", but I get an "Unauthorized" message in return.  Tomorrow I will try the DeleteDatasetByIdWithHttpMessagesAsync to see if that will work.  

jhyot Regular Visitor
Regular Visitor

Re: Delete Report in Azure Workspace

I have tried deleting Datasets just like you, but got an "Unauthorized" message too. I don't even know if deleting datasets could delete the reports that come with it.

Keep me posted if you manage to find a solution Smiley Happy

zach_fransen Frequent Visitor
Frequent Visitor

Re: Delete Report in Azure Workspace

Having the same issue-- I receive an unauthorized on GetTables, although client.Datasets.GetDatasets(workspaceCollectionName, workspaceId) works fine. Any news?

jhyot Regular Visitor
Regular Visitor

Re: Delete Report in Azure Workspace

None. I think I might have to reupload a new .pbix on the same workspace each time, and only display the last one uploaded to my users. I'm hoping the option to delete reports will be there before the end of beta Smiley Happy

runtim Frequent Visitor
Frequent Visitor

Re: Delete Report in Azure Workspace

http://stackoverflow.com/questions/36802875/powerbi-embedded-unable-to-delete-datasets

 

Apparently there was a bug in the DeleteDatasetById.  I verified that It is now working.