prune_anonymous#
- prune_anonymous(root: str | PathLike | Path = None, delete: bool = False, experiments: bool = False, older_than: Optional[str] = None) PruneAnonymousReport#
Report or delete anonymous Artifact and Experiment refs in the Local Registry.
This is the Python SDK equivalent of
ommx prune-anonymous. It only removes SQLite refs whendelete=True; manifest and payload blobs are left forgc()to reclaim if they become unreachable. Anonymous Experiment refs are included only whenexperiments=True.older_thanaccepts the sames,m,h, anddsuffixes as the CLI. An invalid duration raisesValueError; registry and storage failures raiseRuntimeError.>>> from ommx.artifact import prune_anonymous >>> report = prune_anonymous() >>> report.delete_applied False