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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Delete a large number ...
Power Automate
Unanswered

Delete a large number of rows in Sharepoint list, limitation

(0) ShareShare
ReportReport
Posted on by 242

I have searched the internet but cant find out how to delete more than 1000 rows in a sharepontlist with flow.

I do read about a limitation of 5000 rows and a certain amount of API calls but in my case flow only deletes 1000 rows and then stops working.

 

This is the flow with an Odata filter :

addDays(utcnow('yyyy-MM-ddTHH:mm:ssZ'),-90)
it deletes all rows where Created date is older than 90 days.
 

Yvonzim_0-1632831727000.png

 

a) how can i prevent the flow to stop after 1000 rows.

b) the list can be far more than 5000 rows after a month, is this the best way to store data or should i try an other solution like Dataverse? I have an E5 license.

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at

    I suspect the problem is that your Get Items action is only returning 1,000 rows, and therefore the delete action only delete's 1,000 rows.

     

    This method will be very slow. I did a video and blog post about how to delete items quickly using only a single action. Check it out and see if it works for you:

     

    https://www.tachytelic.net/2021/06/power-automate-delete-sharepoint-items/

     

    Blog: tachytelic.net

    YouTube: https://www.youtube.com/c/PaulieM/videos

    If I answered your question, please accept it as a solution 😘

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Yvonzim 

     

    You can use the pagination method to retrieve more than 5000 records.  There are lots of articles already exists so I don't want to explain more on this.

     

    Please have a look at the below links.

     

    Get more than 5000 items from SharePoint with Power Automate (tachytelic.net)

     

    https://alextofan.com/2019/08/22/how-to-get-more-than-5000-item-from-sharepoint-online-in-flow/

     

    Not sure why it stopping after 1000 rows. What error are you getting? If you run again what happens?

     

    Try to implement the pagination method and see whether that resolves or not.  

     

    Thanks

     

  • RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at

    @Yvonzim by the way your filter query is wrong, it should be lt not gt if you are deleting items older than 90 days.

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • Yvonzim Profile Picture
    242 on at

    @abm 

    Tnx for the links.

     

    It gives no error just stops after 1000 rows, i will follow @Paulie78 his adivice.

  • Yvonzim Profile Picture
    242 on at

    @RobElliott 

     

    Tnx for the correction, weird thing it does delete the right rows untill now,  but i will keep this in mind if something goes wrong.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard