Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Scheduled Deletion of old List Items in SPO

(0) ShareShare
ReportReport
Posted on by 42

Hi Team,

 

Hope all's well. I've tried to create a simple flow to go through a list and remove specific items, just to keep the list nice and tidy. I've ran into a little (probably easy) problem though, and I'm a bit confused on the solution.

 

Context: I have a list of items with a start and end date, users put more items in via an app but the list is still very visible. Items need to be deleted when their end date expires to keep the list neat. Naturally I'd rather not have users going into the list and doing this, just to save time. 

 

The flow I've created involves a reoccurrence of each day, so it'll check for items that have expired in the morning before the working day starts. It's targeted at the right list, I know I need a filter query but I don't have much experience with them. I had a look through a few blogs and posts and ended up with the below (End le utcNow()😞 

 

 

I'm under the impression that this formula should bring back anything less than, or equal to 'Now' as in the time it runs - is that right? I had a check on my list this morning but it still has all the old entries from yesterday and earlier.

 

RhysD_1-1621933877958.png

 

Any ideas? 

 

Thanks!

Rhys. 

  • RhysD Profile Picture
    42 on at
    Re: Scheduled Deletion of old List Items in SPO

    Perfect! Thanks Tom, I just reran it and it looks like it worked.

     

    I knew it'd be something simple haha.

     

    Have a great day! 

    Rhys. 

  • Verified answer
    tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: Scheduled Deletion of old List Items in SPO

    Hello @RhysD ,

    you should put single quotes around the utcNow() expression, otherwise the flow will fail (and do nothing).

    image.png

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1