Compliance Problems

Delete Old Exchange Online Emails with Retention Policies

John WilsonJohn Wilson Nov 13, 2026 868 views

Question details

The user needs to delete Exchange Online messages older than seven months through retention policies and manually start processing if deletion is delayed.

Product
Microsoft Exchange Online
Device & OS
not provided
Scenario
An administrator configures age-based mailbox cleanup and checks why a newly assigned retention policy has not deleted older messages.
Observed behavior
Messages remain after the retention policy is assigned; the user wants to trigger mailbox processing manually.
Before you start

Confirm that you have Exchange permissions to manage retention tags, policies, and mailbox settings, and review the mailbox’s existing policy and any applicable holds. Exchange MRM retention ages are specified in days, so agree on the day count your organization will use for the seven-month requirement.

Solution 1Recommended

Create and assign an Exchange MRM retention policy for older emails

Use an Exchange Messaging Records Management (MRM) retention tag and policy for routine age-based mailbox cleanup.

Exchange MRM retention policies are distinct from Microsoft Purview retention policies. A default policy tag applies to messages without a more specific applicable tag; folder or personal tags can produce different results.

The example uses DeleteAndAllowRecovery rather than an immediate permanent purge. If the goal is archiving instead of deletion, use an appropriate MoveToArchive tag and ensure the mailbox has an enabled archive.

1
Connect to Exchange Online

Open PowerShell with the ExchangeOnlineManagement module installed, run Import-Module ExchangeOnlineManagement, and then run Connect-ExchangeOnline. Sign in with an account authorized to manage mailbox retention.

2
Review the existing mailbox policy

Run Get-Mailbox -Identity user@contoso.com | Format-List RetentionPolicy,RetentionHoldEnabled,ElcProcessingDisabled. Replace user@contoso.com with the target mailbox. Review the assigned policy with Get-RetentionPolicy -Identity "Existing Policy Name" | Format-List RetentionPolicyTagLinks before making changes.

3
Create the age-based deletion tag

Replace <days> with your approved integer day count, then run New-RetentionPolicyTag -Name "Older Mail Cleanup" -Type All -RetentionEnabled $true -AgeLimitForRetention <days> -RetentionAction DeleteAndAllowRecovery. For example, 210 represents 210 days, not exactly seven calendar months.

4
Create a policy containing the required tags

For a mailbox that does not need existing tags preserved, run New-RetentionPolicy -Name "Older Mail Cleanup Policy" -RetentionPolicyTagLinks "Older Mail Cleanup". If existing tags must remain available, include their names in the tag list as well. Do not include a conflicting default deletion tag.

5
Assign the policy to the mailbox

Run Set-Mailbox -Identity user@contoso.com -RetentionPolicy "Older Mail Cleanup Policy". A mailbox can have only one Exchange MRM retention policy, so this assignment replaces its previous policy.

Allow time for processing: Exchange Online can take up to seven days to process the mailbox under the new settings. Holds and other retention requirements can preserve message copies even when messages disappear from the user’s mailbox view.
Free Microsoft Office alternative

Document Your Exchange Retention Workflow with WPS Office

WPS Office does not manage Exchange mailboxes or apply retention policies. It offers a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for maintaining retention procedures and cleanup tracking documents with minimal migration effort.

Write mailbox retention procedures and troubleshooting notes in WPS Writer.Track policy assignments and processing checks in WPS Spreadsheet.Work with Microsoft Word .docx, Excel .xlsx, and PowerPoint .pptx files.Use familiar document-editing tools without changing your Exchange administration workflow.
microsoft office alternative - wps office

Frequently Asked Questions

Why are older emails still present after I assign the policy?

Exchange Online processing can take up to seven days. Verify the assigned policy with Get-Mailbox, check the tag’s age and action, and review whether a more specific tag applies. RetentionHoldEnabled or ElcProcessingDisabled can also prevent normal MRM processing.

Can I manually start Exchange Online retention processing?

Yes. Connect to Exchange Online PowerShell and run Start-ManagedFolderAssistant -Identity user@contoso.com using the target mailbox address. The command requests processing but does not make deletion instantaneous.

How do I configure a seven-month retention age?

Set the retention tag’s AgeLimitForRetention parameter to an approved number of days. Exchange MRM does not accept a calendar-month duration for this parameter, so confirm the required day count rather than treating seven months as an exact fixed number of days.

Does a deletion tag permanently erase every copy of a message?

Not necessarily. DeleteAndAllowRecovery allows recovery during the applicable deleted-item retention period. Litigation Hold, eDiscovery holds, or Microsoft Purview retention requirements can preserve copies independently of what the user sees in the mailbox.

Can WPS Office apply an Exchange Online retention policy?

No. Configure mailbox retention through Exchange administration tools or Exchange Online PowerShell. WPS Writer and WPS Spreadsheet can help document the policy and track mailbox processing, but they cannot administer Exchange retention.