gc#
- gc(root: str | PathLike | Path = None, delete: bool = False, grace_period: str = '24h') GcReport#
Report or delete Local Registry blobs unreachable from SQLite refs.
This is the Python SDK equivalent of
ommx gc. It is a dry-run by default. Passdelete=Trueto unlink orphan candidates. Thegrace_periodstring accepts the sames,m,h, anddsuffixes as the CLI.>>> from ommx.artifact import gc >>> report = gc() >>> report.delete_applied False