ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Delete All Emails From Single Folder Office 365 Powershell

    IT Discussion
    office365 powershell
    4
    5
    773
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • NashBrydgesN
      NashBrydges
      last edited by

      I have a client who, when he setup his website, enabled Fail2Ban however decided that he wanted to receive an email for every ban as the default ban action. Needless to say, he now have over 300k emails sitting in this single folder in an otherwise active email inbox.

      My Google-fu seems to be failing me this early in the morning. Does anyone know if there's a way I can delete all emails from that single folder without affecting any other emails in any other folders for this one single user? He's using Office 365, no on-premises Exchange.

      1 Reply Last reply Reply Quote 0
      • coliverC
        coliver
        last edited by coliver

        Is he using the web interface?

        If he is you can right-click on the folder in question and click "Empty Folder" or "Delete All".

        NashBrydgesN 1 Reply Last reply Reply Quote 3
        • NashBrydgesN
          NashBrydges @coliver
          last edited by

          @coliver said in Delete All Emails From Single Folder Office 365 Powershell:

          Is he using the web interface?

          If he is you can right-click on the folder in question and click "Empty Folder" or "Delete All".

          Well I'll be damned! Never even knew that was a thing. Thanks, will get him to try that.

          dbeatoD 1 Reply Last reply Reply Quote 0
          • dbeatoD
            dbeato @NashBrydges
            last edited by

            @nashbrydges said in Delete All Emails From Single Folder Office 365 Powershell:

            @coliver said in Delete All Emails From Single Folder Office 365 Powershell:

            Is he using the web interface?

            If he is you can right-click on the folder in question and click "Empty Folder" or "Delete All".

            Well I'll be damned! Never even knew that was a thing. Thanks, will get him to try that.

            Same as if you are in Outlook 🙂

            1 Reply Last reply Reply Quote 0
            • D
              DimS
              last edited by

              I believe if PowerShell is your method, you will not be able to do what you are trying to achieve. The only way now is to use the one that has just been advised.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post