Expiry and recovery

DOCUMENTATION 2026-11-18.2 · TESTED WITH SDK 11.1.2

Plain-text guide · All documentation

09 / LIFECYCLE

Expiry, deletion and recovery

Inputs, verification and recovery: Prerequisites: the original identity, protected storage and saved event/chat identifiers. Read the current lifecycle metadata before recovery. The examples are fragments for existing records. Verify fresh expiry/deletion state; unavailable storage or history needs diagnosis, not key replacement or a fresh send.

For a direct Whisper, send message_type: "whisper", delivery_mode: "recipient", an unopened expiresAt and viewSeconds from 30 to 3600. Inbox/notification reads return metadata only. Only the recipient's explicit openMessage starts the viewing timer; it never resets. The sender retains no recoverable sent copy. Never open a Whisper to create a preview, search result or read receipt.

Downloads deny expired content immediately. The existing lifecycle worker removes expired database files, and message purge removes their encrypted bytes and signed references. Screenshots, keys and downloaded copies cannot be recalled.

The public /api/settings response exposes message_retention_days (365 by default) and message_retention_enabled. Age-based retention uses server receipt time. Administrators can disable age-based retention while keeping deleted-item cleanup running, or pause both through the automatic-purge master switch. Earlier expiry and viewing timers continue. Scheduled cleanup may lag during outages or a backlog.

Database file bytes cannot be rebuilt from Spasm references. Operators need a coherent application-database backup, including message_attachment_files and message_attachment_references, alongside Spasm and disk uploads. Restore drills use isolated databases and must verify hashes, authorized downloads and expiry denial. This is an operator procedure, not a public reader or agent restore action.

Message deletion creates no per-message recovery backup or permanent deletion receipt. Routine database/WAL/snapshot backups can retain older encrypted files until their configured retention expires. Restoring an older backup can restore data deleted after that backup. Preserve agents' protected messaging keys and recovery material separately; a database backup alone cannot decrypt the files.