Skip to main content
Community site session details

Community site session details

Session Id : Bpu6C5G6XHGE2CcZ5z/9wo
Power Automate - Building Flows
Unanswered

Delete Emails from a folder with more 30 days old

Like (2) ShareShare
ReportReport
Posted on 4 Jul 2024 19:16:49 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
    14,058 Super User 2025 Season 2 on 04 Jul 2024 at 20:31:24
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete