Zentik Logo
Introduction

Retention Policy

How long Zentik retains messages, attachments, and sessions

Zentik is designed for short-lived notification delivery, not long-term storage. The server retains data only until all devices have acknowledged receipt.

ResourceDefault retentionConditionConfigurable
Messages7 daysPruned when all device notifications are acknowledged, or after max ageMESSAGES_MAX_AGE (e.g. 7d, 24h, 30d)
Attachments7 daysDeleted after max age (icons excluded)ATTACHMENTS_MAX_AGE
Sessions14 daysDeleted when inactive for 14 daysNo
Ephemeral messages1 hourAuto-deleted after 1 hourNo

Cleanup schedules

  • Cleanup jobs run every hour for messages and attachments
  • Session cleanup runs daily at 3:15 AM
  • Both message and attachment cleanup jobs can be disabled via server settings (MESSAGES_DELETE_JOB_ENABLED, ATTACHMENTS_DELETE_JOB_ENABLED)
  • Supported duration formats: ms, s, m, h, d

Client-side retention

Your devices are the source of truth — the mobile app retains all notifications and media locally for a configurable period. The server only keeps the metadata needed to coordinate delivery across your devices.