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 / delete all but 1st row...
Power Automate
Suggested Answer

delete all but 1st row in table

(0) ShareShare
ReportReport
Posted on by 12
I've seen posts from @AJA21 & @Sunshine Gu with no resolution?  So asking for my situation:
 
I have a flow that adds rows to an excel file - a template that will be reused and therefore needs to have rows deleted in the flow before adding.  
Is there an action to perform that will delete rows from a table?
 
Caveat - my table starts @ row 6 (headers) and I want to delete any rows after row 7.  Row 7 contains a data validation list that I don't want to lose.
 
Thank you in advance!
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    14,090 Super User 2026 Season 1 on at
    1. I would add a column to your spreadsheet named Row that contains this expression: =ROW(). This returns the current row number.
    2. You can then use the List rows present in a table action and add a filter query to where Row gt 7.
    3. Add an Apply to each action set to the data from step 2.
    4. In the Apply to each, add a Delete a row action and set the Key to Row and the value to the Row value of the current item
    If the spreadsheet could have more than 250 rows, you'll need to enable pagination.

    When posting questions, you need to realize that virtually nobody will know who you are referring to when you include this in your post: "I've seen posts from @AJA21 & @Sunshine Gu with no resolution?" Just post your question and provide screen shots of your flow along with any error messages instead.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard