Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
sjorg
Frequent Visitor

Delete Dataset via API?

Hi,

 

I am trying to replace the contents of a Dataset bound to a Report. Need to do it entirely via API.

 

For example, initially it has X tables, with some rows.

I want to change it to Y tables, all with different names, and different row data.

 

 

1) Delete the Dataset, then create a new one, and rebind it to the Report.

I do not see the option to Delete a Dataset via API....how come?

 

2) The workaround I was thinking of was DeleteRows and UpdateTableSchema. But if (in the above example), Y>X, I don't see an option to AddTables to a Dataset, or UpdateSchema for a Dataset.

 

Anyone know how a "Swap out" for a Dataset can be accomplished via API? This is quite a roadblock.

 

Thanks.

 

 

1 ACCEPTED SOLUTION
v-micsh-msft
Microsoft Employee
Microsoft Employee

Yes, there is no Delete DataSet API available.

 

The current available method to update the DataSet Schema is:

Use the Import API to overwirte the existing one:

Import API

https://msdn.microsoft.com/en-us/library/mt243840.aspx

 

Regards,

Michael

View solution in original post

4 REPLIES 4
matmarq
New Member

Hi,

 

I use REST API for streaming delete rows in RealTimeData. The problem is wich token authorization is dynamic.

Exist another path for this without token dynamic? I want use Power Automate to do streaming delete rows.

 

Thank´s for help.

v-micsh-msft
Microsoft Employee
Microsoft Employee

Yes, there is no Delete DataSet API available.

 

The current available method to update the DataSet Schema is:

Use the Import API to overwirte the existing one:

Import API

https://msdn.microsoft.com/en-us/library/mt243840.aspx

 

Regards,

Michael

There is delete Dataset by Dataset ID API method available.

 

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/deletedatasetbyidingroup

interesting - haven't tried it, but is this new? Don't think it was available earlier

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.