As part of your organization's information governance approach, you can control how long direct messages (DMs), group messages, and messages in spaces in Google Chat are retained. Use retention rules to set how long to keep messages and when to delete them, if ever.
To keep data that matches specific conditions for a set time, create a custom retention rule. To keep all service data for all licensed accounts for a set time, create a default retention rule.
Important information about Chat retention
Before you set retention rules, we strongly recommend you read about how retention works and review the Chat messages supported in Vault.
WARNING: An improperly configured retention rule can allow Chat to immediately and irreversibly purge messages. Use caution when you create or change retention rules. We recommend that you test new rules on a small set of accounts before you apply the rules to your entire organization.
Set a custom retention rule for Chat
- Sign in to vault.google.com.
- Click Retention
Custom Rules
Create.
- For the service, select Chat and then click Continue.
- Choose an entity:
- To retain DMs and group conversations that were sent or received by accounts in an organizational unit, select Organizational unit. Click the organizational unit field and, in the dialog that opens, click the organizational unit. The rule doesn't apply to messages in spaces or group conversations in Chat created after early December 2020.
- To retain messages in all spaces in your organization, select All Chat spaces. The rule doesn't apply to direct messages or some group messages.
Review the differences between rule types.
- Choose how long to keep messages:
- To permanently retain messages covered by this rule, choose Indefinitely.
- To discard messages after a set time, choose Retention period and enter the number of days, from 1 to 36,500.
Warning: Vault allows Chat to immediately purge data that exceeds the retention period when you submit a new rule. The purged data can include data that users expect to keep. Don't proceed to the next step until you’re sure the rule is configured correctly.
- Click Create. If you set a retention period, check the confirmation box and click Accept.
Set the default retention rule for Chat
- Sign in to vault.google.com.
- Click Retention. The list of default rules opens.
- Click Chat
.
- Choose how long to keep messages:
- To permanently retain messages covered by this rule, choose Indefinitely.
- To discard all messages after a set time, choose Retention period and enter the number of days, from 1 to 36,500.
Warning: Vault allows Chat to immediately purge data that exceeds the retention period when you submit the rule. The purged data can include data that users expect to keep. Don't proceed to the next step until you’re sure the rule is configured correctly.
- Click Save. Vault asks you to confirm you understand the rule's effects. Check the boxes and click Accept to save the rule.