en-US

DeletedResources

Parameter of RetentionCompliancePolicy

Applies to : Security & Compliance

Description

The DeletedResources parameter specifies the deleted Microsoft 365 Group, mailbox, or mail user to be removed or added as an exclusion to the respective location list. Use this parameter with the AddModernGroupLocationException and RemoveModernGroupLocation parameters for deleted Microsoft 365 Groups, or with the AddTeamsChatLocationException parameter for deleted mailboxes or mail users.

A valid value is a JSON string. Refer to the Examples section for syntax and usage examples of this parameter.

CAUTION: When you use a SMTP address with this parameter, be aware that the same address might also be in use for other mailboxes or mail users. To check for additional mailboxes or mail users with the same SMTP address, use the following command and replace [email protected] with the SMTP address to check: Get-Recipient -IncludeSoftDeletedRecipients [email protected] | Select-Object DisplayName, EmailAddresses, Description, Alias, RecipientTypeDetails, WhenSoftDeleted

To prevent active mailboxes or mail users with the same SMTP address from being excluded, put the mailbox on Litigation Hold before you run the command with the DeletedResources parameter.

For more information about the deleted Microsoft 365 Group scenario, see Learn more about modern group deletion under retention hold.

For more information about the inactive mailbox scenario, see Learn about inactive mailboxes.

Microsoft Learn documentation

Characteristics

Type
String
Parameter sets
Identity

Apply

Enter the name of the policy to change.