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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
zandora
Regular Visitor

How to delete all rows from a streaming dataset using API?

Hy all,

 

I want to know how we can delete all rows in a streaming database PowerBi using API. I have created an app in Azure with the below permissions.

zandora_0-1718200963487.png

And tried to send POST call to get the database details in the workspace. But I got the below error

zandora_1-1718201001641.png

Please advice where I am wrong, I believe all the permissions are clear.

5 REPLIES 5
Anonymous
Not applicable

Thanks for the reply from @lbendlin , please allow me to provide another insight:

 

Hi @zandora ,

 

First get the corresponding datasetID with a get request:

GET https://api.powerbi.com/v1.0/myorg/groups/{group-id}/datasets
Authorization: Bearer {access-token}

 

Then use a delete request to remove all rows:

DELETE https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/tables/{tableName}/rows

 

 For more details, you can refer to below document:

Datasets - Get Datasets In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Push Datasets - Datasets DeleteRowsInGroup - REST API (Power BI Power BI REST APIs) | Microsoft Lear...

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous ,

Thankyou for your response, I tried but it was a failure.

The below image shows it was not working as same.

zandora_0-1718261479467.png

I am generating token as demonstrated below;

zandora_1-1718262150653.png


But when I tried using login to this guide I was able to get it successful. I believe I am creating the token in the wrong way.

zandora_2-1718262400735.png
The below are the API permission with admin consent;

zandora_3-1718262498053.png
Please let me know how we create the auth token if I am doing it wrong

 

 



 

zandora
Regular Visitor

@hackcrr , @SaiTejaTalasila , @lbendlin , @ibarrau  Please advise me, thanks in advance..

use jwt.io to check if your token actually has that scope.

Thankyou for your response, I tried to decode the authorization code but I didn't see anything regarding the access details. Please let me know the proper way to request Authorization code. I believe that's where I am wrong 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.