web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Is there a way to clea...
Power Automate
Answered

Is there a way to clear/delete multiple table data using cloud flow

(0) ShareShare
ReportReport
Posted on by 2

I am able to delete a single table data using List rows, Apply to each and Delete a row. How can I implement this for multiple tables? Any suggestions? Thanks 

Categories:
  • v-peijunz-msft Profile Picture
    Microsoft Employee on at

    Hi @Hema1111 

     

    The out-of-box method to delete rows in multiple tables currently is to list rows for each table and delete a row for different tables.

    If you wish to get the feature to be released in the future, it is recommended to raise your concerns in Ideas:

    Power Automate Ideas · Community

    Many features of the current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future.

    Hope it helps.

     

    Best regards,

    Sylvia

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Hema1111 

     

    As @v-peijunz-msft said,

    Common way is to get tables names in excel, iterate through each, get rows list for that table, and then delete the row, but limitation for this method is that, since delete row need key column and its value to delete, so you may need to keep key column name corresponding to each table as object (json) in flow to get key column corresponding to that table name. 

     

    Another method would be to use office script to delete all rows from all tables.

     

    I have used this deisgn in flow

     

    Nived_Nambiar_0-1682055149040.png

    office script used

     

     

    function main(workbook: ExcelScript.Workbook,tablename: string) {
     let myTable = workbook.getTable(tablename);
     let rowCount = myTable.getRowCount();
     myTable.deleteRowsAt(0, rowCount);
    }
    
    

     

    Hope it helps

    Let me know if you have any questions

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 330

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 123

Last 30 days Overall leaderboard