Delete All Emails From Single Folder Office 365 Powershell
-
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.
-
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".
-
@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.
-
@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
-
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.