oz0 retention set

Keep a tenant's audit entries, job summaries, usage rows and stored payloads this many days (at least 31; 0 keeps everything).

For: Operators and developers looking up a command.

Keep a tenant's audit entries, job summaries, usage rows and stored payloads this many days (at least 31; 0 keeps everything). High-risk agents' entries stay at least 184 days, and stored payloads at least 90, which a job that runs that long replays from. The tenant's Temporal histories follow it too, within the backend's limits: the edge sets the namespace's retention on the embedded and an external Temporal, and says what to set on Temporal Cloud (at most 90 days).

0 keeps them as long as the backend allows.

Usage

oz0 retention set DAYS [flags]

Flags

FlagTypeDefaultDescription
--decision-refstringthe decision or case the change follows, such as a case number (at most 200 characters)
--jsonboolprint JSON instead of a table
--reasonstringwhy, required for every governance change (at most 500 characters; default $OZ0_REASON); the audit log keeps it

Inherited flags

FlagTypeDefaultDescription
--contextstring$OZ0_CONTEXT or <config dir>/orchestrator-zero/context.jsonCLI context file written by server init
--log-levelstringinfolog level: debug, info, warn or error
--tenantstringdefaultthe tenant

See all oz0 commands and the global flags.

On this page
Copyright © 2026