Settings

Messages

Configure message data retention and cleanup policies

Configure how long messages are stored and when they are automatically cleaned up.

Messages settings

Data Retention

Automatic data retention policies delete messages older than the configured retention period. Cleanup runs daily via a scheduled cron job at 3:00 AM.

Dashboard

At the top of the page you'll see a summary of your retention status:

MetricDescription
Days retentionYour current retention period
At riskNumber of messages that will be deleted at the next cleanup
Oldest messageHow old your oldest stored message is
Next cleanupWhen the next automatic cleanup will run

Retention Period

SettingDescription
Unlimited RetentionKeep all messages forever — no automatic cleanup. Available on Enterprise plan only
Retention daysNumber of days to keep messages (e.g. 30 days). Messages older than this are deleted at the next cleanup
Delete media with messagesAlso remove attached files (images, documents, audio, video) when messages are deleted
Preserve starred chatsKeep messages in starred chats regardless of retention period

Retention Limits by Plan

PlanDefaultMaximumConfigurable
Free7 days7 daysNo
Standard30 days30 daysYes
Pro90 days90 daysYes
Enterprise180 daysUnlimitedYes

On the Free plan the retention period is fixed and cannot be changed. Upgrade to Standard or higher to configure your own retention period.

Cleanup Process

When the daily cleanup runs, the system:

  1. Calculates the effective retention period based on your settings and plan limits
  2. Finds all messages older than the cutoff date
  3. Deletes associated media files (if Delete media with messages is enabled)
  4. Deletes message reactions
  5. Removes the messages

Deleted messages and media cannot be recovered.


On this page