How to delete emails from a user's mailbox when it doesn't allow you to do it manually? (Purge?)

Christophe Cervello (FLAIR-IT) 20 Reputation points
2024-12-16T14:48:22.46+00:00

Hi again, I am confronted with a user whose mailbox is full. There is no deleting manually the emails or the attached files. Here the Folder statistics :

User's image

Clearly the issue is with the DiscoveryHolds and the SearchDiscoveryHoldsUnindexedItemFolder, however I don't know how to purge these folder atm.

Please advise.

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,786 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
4,199 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,697 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 110.6K Reputation points MVP
    2024-12-16T17:07:07.9833333+00:00

    You cannot purge items that are on hold, that's the idea behind the hold feature. The only way would be to remove the hold(s) first, as detailed in this article: https://learn.microsoft.com/en-us/purview/ediscovery-delete-items-in-the-recoverable-items-folder-of-mailboxes-on-hold?view=o365-worldwide

    Of course, make sure that you are actually allowed to remove the hold first, you don't want to end up in a scenario where a bunch of item required by a litigation were removed. If the idea is to free up some space, a faster approach might be to do a "cleanup", by running the following cmdlet:

    Start-ManagedFolderAssistant user@domain.com -HoldCleanup
    

    This will prompt the MFA to potentially clean up duplicate items that are on hold, without impacting the overall hold status.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.