Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Delete items within a certain time in sharepoint

(0) ShareShare
ReportReport
Posted on by 2

Hi all,

 

I have problem that I am trying to figure out.

 

I have had a look at the forums but can't find exactly how to do this - all the examples I have seen are to do with dates rather than time.

 

The problem:

I have column in SharePoint called 'Check Out From' which is a date and time field and a field called CheckedIn (Yes/No).

 

If the user hasn't checked in (CheckedIn = false) within 30 minutes after the Check Out From. Then I want to delete the list item. 

 

I am trying to work out what the condition for the above would be? 

 

Thanks

  • JasonLane Profile Picture
    261 on at
    Re: Delete items within a certain time in sharepoint

    hi,

    So does this flow occur every morning and look for the time? Just need to understand how the trigger works?

    I believe you still need to add the condition mentioned above. There is a few articles when searching about the conditions mentioned in my last post that may assist you as well. couple below:

    https://manueltgomes.com/reference/powerautomate-function-reference/flow-addminutes-function/

    https://softchief.com/2021/09/13/use-of-date-time-expressions-guide-for-power-automate-complete-tutorial/

    Let me know.

    Thanks

  • birms93 Profile Picture
    2 on at
    Re: Delete items within a certain time in sharepoint

    Hi,

     

    So my flow looks like this:

    birms93_0-1665044384178.png

     

    The condition bit is what I need help on.

    The SharePoint column follows the following format:

    birms93_1-1665044479855.png

    If in the above example the user hasn't checked in by 8:30AM on 10/4/2022 then I want to delete the row. I don't want the condition to delete any other rows on that day. It should compare the time now with the time in SP +30 mins and if over, then delete row. If that makes sense.

     

  • JasonLane Profile Picture
    261 on at
    Re: Delete items within a certain time in sharepoint

    @birms93 Have you got the date/time field separate in the SP Form? I believe its the 

    addToTime(utcNow(),-30,'hh:mm') or it could be 
    addMinutes(utcNow(),-30,'mm')
    JasonLane_0-1664980316317.png

     

    If you have the time separate and then the same approve as another condition for date to say . I dont have the flow you have created so cannot be 100% but this may help you.
    Please accept if this has helped.

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