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 / Delete deleted Items f...
Power Automate
Unanswered

Delete deleted Items from Outlook 365

(0) ShareShare
ReportReport
Posted on by 14

Hi,

I'm currently trying to build a flow that checks every week if there are older emails than 93 days in the deleted folder in Outlook and deletes them.

there are two issues at hand:
1. there is a limit to how many emails I can get from the folder structure via "get emails", 25 to be specific, which is hilariously low. but getting it greater seems impossible. before I can check if I can go around that with the sorting direction of the folder there is the other issue at hand.
2. the get emails function gives me back an empty array. this function only gets me back emails that are marked unread, and I cant find a way to switch that off, so it can count the others as well. and marking everyting unread in the deleted folder is just a hazard for errors.

does anyone have an idea to solve issue two?
issue one might be solvable via recursive but I can only test if I can solve issue 2.

Thanks for the help.
LG Tilman

Categories:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    on at

    Hi @TilmanII ,

     

    Please check if this setting is turned off.

    vmengmlimsft_0-1719475692901.png

     

     

    Best regards,

    Rimmon

  • TilmanII Profile Picture
    14 on at

    I disabled it since I figured both kinds would be counted/ "grabbed" if not checked.
    But it seems deactivated it ignores read ones like the name suggests if i read more carefully).

    Thanks for the check.

     

    LG Tilman

  • TilmanII Profile Picture
    14 on at

    Hi,

     

    it seems like making the check recursive doenst work as I'm not able to get past the first 25 files which are not needed to be deleted....
    has anyone ideas how to make it work with folders bigger than 25 emails?

     

    LG Tilman

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard