Assign a Retention Policy to One Outlook Folder with PowerShell
Question details
Determine whether PowerShell can apply an automatic deletion policy to a single Outlook folder.

- Product
- Microsoft Outlook and Microsoft 365 retention
- Device & OS
- not provided
- Scenario
- An administrator wants to delete items from one mailbox folder after a short retention period without applying the same rule to the entire mailbox.
- Observed behavior
- The goal is folder-specific deletion, but Microsoft Purview retention policies generally target mailbox locations rather than individual Outlook folders.
Identify the mailbox and folder, and check whether you are working with a Microsoft Purview retention policy or an Exchange messaging records management (MRM) policy. You will need appropriate Exchange administrative permissions to inspect or change MRM policies.
Use an Exchange personal retention tag for the folder
Use a personal tag when folder-level tagging is available and a mailbox-level policy alone is too broad.
Exchange MRM policies are assigned to mailboxes, but they can include personal tags that users apply to individual folders in supported Outlook configurations. This is not the same as assigning an entire retention policy directly to a folder with PowerShell.
A one-day retention age does not guarantee deletion exactly 24 hours after an item arrives. Processing by the Managed Folder Assistant is asynchronous, and retention age depends on the item and tag settings.
Connect to Exchange Online PowerShell with Connect-ExchangeOnline, then run Get-Mailbox -Identity user@example.com | Format-List RetentionPolicy. Replace the address with the target mailbox.
Run Get-RetentionPolicy -Identity "Policy Name" | Format-List RetentionPolicyTagLinks and Get-RetentionPolicyTag to see the tags in the assigned policy. Replace the policy name with the value returned for the mailbox.
If no suitable tag exists, use Exchange Online PowerShell to create a personal retention tag with New-RetentionPolicyTag and add it to the mailbox's existing MRM policy with Set-RetentionPolicy. Review its retention age and deletion action before applying it; preserve the policy's existing tag links.
In a supported version of Outlook, right-click the target folder and look for Assign Policy, or open Properties and select the Policy tab. Choose the personal tag and save the change.

Review mailbox-wide Microsoft Purview retention settings
Use this approach to verify whether an existing compliance policy covers the mailbox before changing folder tags.
Work with Office documents in WPS Office
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations in a familiar interface. Its Microsoft Office format compatibility helps you move existing files without changing your workflow. It does not manage Outlook or Microsoft 365 retention policies.

Frequently Asked Questions
Can PowerShell assign an entire retention policy directly to one Outlook folder?
Generally, no. Microsoft Purview retention policies target mailbox locations, and Exchange MRM policies are assigned to mailboxes. For folder-specific MRM behavior, configure a personal tag in the mailbox policy and apply that tag to the folder in a supported Outlook client.
Can a mailbox have more than one retention policy?
A mailbox can have one assigned Exchange MRM retention policy at a time. Multiple Microsoft Purview retention policies can also apply to the mailbox, so check both systems when reviewing retention behavior.
Will a one-day retention tag delete messages exactly 24 hours later?
No exact 24-hour deletion time is guaranteed. Exchange processes retention asynchronously through the Managed Folder Assistant, and the retention age depends on the item and tag settings.
Where do I apply a personal retention tag in Outlook?
In a supported Outlook client, right-click the folder and look for Assign Policy, or open the folder's Properties and select the Policy tab. Available options depend on the client and mailbox configuration.




