When you’re satisfied that you have all the information you need about the message, it is time to fire up PowerShell and start creating the content search. Creating and Running the Office 365 Email Content Search Then, it is up to you to determine which of these search parameters would be most applicable. In most cases, one or two of the information listed above should be sufficient to formulate a search query.
![how to remove office 365 as email how to remove office 365 as email](https://www.slipstick.com/images/2011/tutorial/add-remove-programs.png)
For example, some of the most basic information you need to get are:
HOW TO REMOVE OFFICE 365 AS EMAIL HOW TO
Knowing as many details about the message as possible would help you decide how to formulate the search query. Not unless all information is provided to you already. Gathering Information About the Message to Deleteīefore you start creating the content search for the message that needs to be deleted, you must gather all the pertinent information about the message first. Follow this link to connect without MFA, or this link to connect with MFA. PowerShell must be connected to the Office 365 Security & Compliance Center PowerShell.– Permission required to preview messages: The account must be a member of the eDiscovery Manager role group or be assigned the Preview management role – Permission required to delete messages: The account must be a member of the Organization Management role group or be assigned the Search And Purge management role
![how to remove office 365 as email how to remove office 365 as email](https://ezgican.net/wp-content/uploads/2019/03/PowerShell_5-1024x413.png)
– Permission required to search mailboxes: The account must be a member of the eDiscovery Manager role group or be assigned the Compliance Search management role. Your admin account must have enough Office 365 permissions to search mailboxes and delete messages.Since this article is essentially a How-To, there are some requirements if you plan to follow along. Creating and Running the Office 365 Email Content Search.