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 / Flow to delete emails ...
Power Automate
Answered

Flow to delete emails still keeps running

(0) ShareShare
ReportReport
Posted on by 969

Hello Power Automate users.

 

I have created a Flow to delete emails from a certain folder in Outlook after 24 hours.


It seems to work but the runs remain running when the mail is deleted.

I don't think this is desirable, right?
Do I have to adjust something in the flow so that the run stops when the mail is deleted that is in it for 24 hours?

 

14-9-2022 07-54-47.png

 

14-9-2022 07-54-17.png

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @frixel 

    From the screenshot that you have provided it looks fine as they will stop after 24hours. But definitely in other runs they might not be stopping. Not sure why its happening like that.

    But if you are getting the desired results, then you can go to settings and set a timeout so that it times out and stops. 

     

    I hope this helps. 

  • fchopo Profile Picture
    8,003 Moderator on at

    Hi @frixel 

    There are number of possible causes to slow running flows:

    • Check on Office 365 Outlook connector throttling limits: Office 365 Outlook - Connectors | Microsoft Docs as you can make up to 300 requests every 60 seconds per connection (and not per workflow).
    • Your flow is exceeding the data consumption allowance per day.  This is the amount of data your flow consumes as a result of the input/output operations.

    • Your flow is executing an excessive number of actions per day, far in excess of the daily action limits for your plan.

    Hope it helps!

    Ferran

     

  • Srini007 Profile Picture
    3,327 Super User 2025 Season 2 on at

    @frixel 

    Is it that you have to trigger the flow when the email and wait for 24 hours and delete that mail?

    OR you want to delete the mails from the folder which are older than 24 hours? 

     

    Let me know

     

    Thanks,

    Srini

  • frixel Profile Picture
    969 on at

    @Srini007 

    want to delete the mails from the folder which are older than 24 hours.

    But also for new mails if they there more than 24 hours they must be delete.

  • frixel Profile Picture
    969 on at

    @Sundeep_Malik 
    I can`t find a timeout in the settings from the flow. Where can i find that?

  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at

    Hey @frixel 

    Just click on 3 dots on the right side of action. 

    Sundeep_Malik_0-1663139306431.png

    Then click on settings. 

    Sundeep_Malik_1-1663139351826.png

    Then there is the timeout option.

    Sundeep_Malik_2-1663139387182.png

    You can set it to P1M, for 1 minute or according to your choice. 

  • fchopo Profile Picture
    8,003 Moderator on at

    Hi @frixel 

    If you want to delete emails older than 24h you should do something like this:

    1) Every day, at 1am (for instance)

    2) Get the emails older than 24h -> ReceveidDateTime lt addDays(utcNow(),-1)

    3) For each email -> Delete it

    delete-email.png

     

    The only problem is that Get Emails only get 25 last emails... So you could ´count number of emails an run that inside an iterator.

     

    Hope that helps!

    Ferran

     

  • frixel Profile Picture
    969 on at

    @fchopo 
    I made your suggested flow but it don`t delete the mail from yesterday 14:10 hour (Now it is Wednesday 14:20 hour)

     

    14-9-2022 14-17-11.png

     

    14-9-2022 14-18-06.png

     

    14-9-2022 14-21-34.png

  • Sundeep_Malik Profile Picture
    6,484 on at

    @frixel 

    Not sure, but it could be because of the UTC time. The mail you received was at 14:26 your time and currently the utc time is like 12:25.

  • frixel Profile Picture
    969 on at

    @Sundeep_Malik @fchopo 

    Still now 2 hours later and the mail from yesterday are not deleting.

    The UTC time can i change that to the dutch timen?

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard