prune_anonymous

prune_anonymous#

prune_anonymous(root: str | PathLike | Path = None, delete: bool = False) PruneAnonymousReport#

Report or delete anonymous Artifact refs in the Local Registry.

This is the Python SDK equivalent of ommx prune-anonymous. It only removes SQLite refs when delete=True; manifest and payload blobs are left for gc() to reclaim if they become unreachable.

>>> from ommx.artifact import prune_anonymous
>>> report = prune_anonymous()
>>> report.delete_applied
False