12-08-2018 09:28 AM
12-08-2018 09:28 AM
Have a problems with Office 365 / Outlook 2016 / Exchange Online Plan 1
I have a service mailbox which has 60000 emails in deleted items folder and I can't empty it - tried in Outlook and via OWA - they appear to go but if I refresh they come back
Also tried mfcmapi deleting "recoverable items" and "deleted items" as per http://m1econsulting.com/knowledge-base/clear-out-deleted-items-folder-with-mfcmapi-exchange-2010/ which doesn't work
Also tried deleting the whole Deleted Items folder as per mention here - https://social.technet.microsoft.com/Forums/ie/en-US/e65534c4-3b35-48ea-b54a-3412af600be3/cant-delet...
But that fails with error below:-
Code: MAPI_W_PARTIAL_COMPLETION == 0x00040680
Function lpParentFolder->DeleteFolder( lpItemEID->cb, reinterpret_cast<LPENTRYID>(lpItemEID->lpb), lpProgress ? reinterpret_cast<ULONG_PTR>(m_hWnd) : NULL, lpProgress, ulFlags)
Mailbox is now just under its 50gb limit and problem is getting urgent as this mailbox processes emails automatically so needs to be working
Any ideas please?
12-08-2018 12:54 PM
12-08-2018 01:42 PMSolution
Thanks for your reply and the suggested article which has certainly given me some useful notes for next time I have a problem
In the end as the mailbox is critical to our business (process incoming mail for a document management system), I logged a support call with Microsoft and a really helpful chap advised it was due to the 14 day retention policy on mailbox not working and used some powershell commands to get it working
So fingers crossed the 60000+ items in deleted items has now started to go down and 99% of my 50Gb used is now 85% so much improved
Thank you for your reply
12-08-2018 01:51 PM - edited 12-08-2018 01:53 PM
Thanks Darren, thanks for confirming. Really glad it's working. In that case, if you could mark it as the solution and then drop us a line if the issue is unresolved, or you have an issue elsewhere and we'll look straight into it. Had a great rest of the weekend.
Oh, in order to prevent it happening again, you can always turn the archive on the mailbox which is another 50Gb and put a retention policy that everything older than, say, a year, will go into the archive or delete. It may be a way of keeping the mailbox clear for the future.
12-09-2018 07:57 AM
Why wasn't the retention policy working? Perhaps it was simply that the Managed Folder Assistant had skipped the mailbox for some reason (it uses a weekly workcycle) and the command used to get things going again was Start-ManagedFolderAssistant?
12-09-2018 08:03 AM
Unfortunately I don't know why it had stopped working, just know it must have done as inbox had four weeks of mail rather than the two weeks (14 days) it was supposed to contain and that was why it was hitting limit. Problem then got worse when I tried deleting loads of them manually, it wouldn't let me delete permanently so had to delete and put in deleted items, then I couldn't empty deleted items, so ended up over size limit and with bin not working/emptying
Using Start-ManageFolderAssistant then kicked it in to life (after purging RecoverableItems as well) and deleted folder went from 60000+ items (9gb+) to 0 items in about 6 hours
12-09-2018 08:07 AM
so does that mean a retention rule (the Managed Folder Assistant) only runs once a week normally? so even if doing 14 day retention, it may get to 20/21 days if only running once every 7 days normally?
12-09-2018 10:17 AM
The aim of the workcycle used by the MFA is to process mailboxes at least once at week. Often it happens more often. The exact details depend on server load. If you have a policy to remove items from the Deleted Items folder once they are 14 days old, they should be removed on that basis.
12-09-2018 10:20 AM
thanks for reply
Yes we have a 14 day deletions policy to delete all mail in inbox permanently if over 14 days old, so like this should avoid it going in deleted items.
Will keep monitoring mailbox now to make sure it works and doesn't creep up to 50gb again
12-10-2018 01:53 AM
I wrote some code to figure out how often MFA processes mailboxes on my tenant. It seems like they are being processed at least a couple of times per week. Try this on your tenant: https://office365itpros.com/2018/12/10/reporting-the-managed-folder-assistant/
10-20-2019 01:14 PM
11-20-2019 12:12 PM - edited 11-20-2019 12:13 PM
I am experiencing also... no Powershell scripts are working. When we delete items, they show back up in seconds. Issue is our 100GB mailbox limit keeps getting maxed out and I cant delete anything to make space. No litigation holds.
Get-MailboxFolderStatistics "email@example.com" -FolderScope "RecoverableItems" | Format-List Name,FolderAndSubfolderSize
Name : Recoverable Items
FolderAndSubfolderSize : 110 GB (118,111,612,814 bytes)
Name : DiscoveryHolds
FolderAndSubfolderSize : 92.84 GB (99,683,338,775 bytes)
Get-MailboxFolderStatistics "firstname.lastname@example.org" -FolderScope "DeletedItems" | Format-List Name,FolderAndSubfolderSize
Name : Deleted Items
FolderAndSubfolderSize : 79.86 GB (85,753,721,801 bytes)
None of the above worked.
So this is very frustrating to say the least. MS ticket open but no fix at this time.
01-18-2020 09:16 PM
For me it turns out a previous admin had enabled the "Preservation Lock" option which means that anything not older than 5 years cannot be purged from the Recoverable Items folder.