Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Delete Emails from a folder with more 30 days old

(2) ShareShare
ReportReport
Posted on by 4

I'm new in power automate and

I need to delete emails from a folder that are more than 30 days old.

 

But the following expression "received:<@{formatDateTime(addDays(utcNow(), -30), 'yyyy-MM-ddTHH:mm:ssZ')}" is not working.

can you help me?

del_emails_pw.png

  • trice602 Profile Picture
    13,773 Super User 2025 Season 1 on at
    Re: Delete Emails from a folder with more 30 days old

    Hi @Thausd ,

     

    It seems like this will work, please let me know.

     

    So convert your 'received time' dynamic content to 'yyyy-MM-dd' to match your addDays.

     

    trice602_0-1720125061295.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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492