Skip to content

KR B2B Retention Policy

k-msg provides a KR B2B retention preset for messaging operations.

  • Operational logs (opsLogs): 90 days
  • Telecom metadata (telecomMetadata): 365 days
  • Billing evidence (billingEvidence): 1825 days
  1. Tenant contract terms (including early deletion)
  2. Product preset policy
  3. Legal baseline defaults

This means stricter tenant deletion requirements take precedence when configured.

  • Standard columns: retention_class, retention_bucket_ym
  • Postgres/MySQL: partition DDL templates
  • SQLite/D1: bucket-index chunk delete with equivalent semantics
  • Keep OTP/message body short-lived (1~7 days) and purge
  • Never log plaintext; emit masked values only
  • Prefer bucket/partition cleanup over bulk row deletes

Reference: