Skip to main content

purge

Function purge 

Source
pub async fn purge(
    pool: &PgPool,
    project_id: Option<Uuid>,
    older_than_days: Option<i32>,
) -> AppResult<u64>
Expand description

Deletes old entries (the teamcraft access-log purge command; no actor, the operator of the server).

With older_than_days every entry older than that goes (of one group, or of all); without it each group’s own log_retention_days applies and groups without one keep their log.

§Invariants

  • Permission: none here; only the CLI calls it.
  • Audit: access_log.purge with the count, in the same transaction.
  • Atomic: one transaction.