web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Delete ALOT of emails

(0) ShareShare
ReportReport
Posted on by
Greetings. Using SharePoint, I set an Alert on a Document Library to immediately, anytime ANY changes happen, send me an email. I did that several weeks ago and forgot about it. This morning, I made several thousand changes to the above mentioned Doc Library. Needless to say, my email inbox is overflowing. I've turned the alert off (my Bad) Now I need a quick way to delete the email messages. I'm assuming it's something like Get Messages, Dump into Array, Apply to Each-Delete. I've tried something along those lines, but can't seem to get anything to Dump into an Array Variable. Can someone show me the steps to find all emails in my INBOX that have come from 1 certain email address? I'd be grateful.
Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Do you want to delete emails from a specific email address?

    Please check the following flow configuration for a reference.

    Add the trigger Button. You may change it to other triggers to your scenario.

    Add the action Get emails. Input the following code into the Search query box to search emails from a specific email address. Input the max value 25 into Top field.

    Add the action Delete email, select dynamic content Message Id from the previous action.

    A screenshot for your reference.

    1.PNG

    Besides, this doc on $Search query for your reference:

    https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/complex-types-for-mail-contacts-calendar#search-requests

     

    Best regards,

    Mabel

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    I ended up using the "Sweep" option in O365 Outlook.  Very quick and fast.  Several thousand emails gone in several minutes.

  • sfos83 Profile Picture
    40 on at

    If we want to use this over the 'sweep' function as helpfully offered, is there any way of deleting more than 25 emails at a time? That is the max and seems quite low for when you want to delete thousands

     

    Thanks all

    Steve

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard