Skip to main content

Data retention

LOCAL runs the cleanups every night. Each period is in days, with a minimum of 1. Set periods to what your legal and compliance team requires; ECV does not know your legal minimums.

Key Default Deletes Keeps
RECORDING_RETENTION_DAYS + RECORDING_RETENTION_DELETE_ENABLED 3650, off Recording files older than the period, only while deletion is on. Off: expired files are only counted in the log. The call, its attributes and events, and the recording entry (marked as file deleted).
RECORDING_RETENTION_BATCH 1000 Most recording files deleted per night. Raise it to clear a backlog.
RAW_RECORD_DELETE_EXPIRATION_DAYS 30 Raw per-side recording files, where the raw file cleanup is installed. Also the expiry of side audio extracted for transcription. The processed recording. After this, a recording cannot be rebuilt or processed again.
CLEANUP_VIDEO_PROCESS_JOBS_DAYS 180 Video processing history. Recordings.
CLEANUP_SYSTEM_EVENTS_DAYS 730 System events: the audit trail of sign-ins and changes. —
CLEANUP_SYSTEM_ALERTS_DAYS 730 System alerts. —
CLEANUP_CALL_CONNECTION_EVENTS_DAYS 90 Call connection events, the main trace for recording investigations. Call events.
CLEANUP_CALL_NETWORK_QUALITY_DAYS 365 Detailed network quality samples. Each call's overall network quality.

Per tenant

RECORDING_RETENTION_DAYS and RECORDING_RETENTION_DELETE_ENABLED can be set per tenant. A tenant without its own value uses the global one. The other periods are global.

Speech data

  • Transcripts and scores are deleted after SPEECH_DATA_RETENTION_DAYS when it is set.
  • When it is not set, they follow the recording period, and are deleted only while recording deletion is on.
  • So turning recording deletion on also deletes transcripts and scores older than the recording period, unless speech data has its own period.

Turning deletion on

  1. Set RECORDING_RETENTION_DAYS and leave deletion off for one night.
  2. Check the LOCAL log: RecordingRetentionCleanup lists how many recordings are past the period.
  3. Decide on SPEECH_DATA_RETENTION_DAYS.
  4. Turn RECORDING_RETENTION_DELETE_ENABLED on. Deleted files cannot be recovered.