How do I remove site mailbox not manually? What I have tried so far:
remove-mailboxdon't remove the app from SharePoint Online site. If you had a working mailbox and remove it with these cmdlets, you will start getting "Almost ready" and "Setting up" error messages after you click on the mailbox.
I tried accessing
$context.Web.AllPropertiesand modify/deleting/removing these properties:
$webProps = $context.Web.AllProperties $webProps.Set_Item("ExchangeTeamMailboxSiteCollectionUrl", $NULL) $webProps["ExchangeTeamMailboxEmailAddress"]=$NULL $webProps.FieldValues.Remove("ExchangeTeamMailboxEmailAddress") $context.Web.Update() $context.ExecuteQuery() $context.Load($webProps) $context.ExecuteQuery()
None of the above had any effect and after the .ExecuteQuery() the properties are still there with the same values as before.
- The site mailbox is not a list and cannot be removed as such from ListCollection of the site.