MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / delete

Method delete

unity_cli/api/uitree_snapshot.py:81–87  ·  view source on GitHub ↗

Delete a saved snapshot. Returns True if deleted.

(self, name: str)

Source from the content-addressed store, hash-verified

79 return sorted(p.stem for p in self._dir.glob("*.json"))
80
81 def delete(self, name: str) -> bool:
82 """Delete a saved snapshot. Returns True if deleted."""
83 path = self._path(name)
84 if path.exists():
85 path.unlink()
86 return True
87 return False
88
89
90def _collect_elements(data: dict[str, Any]) -> list[dict[str, Any]]:

Callers

nothing calls this directly

Calls 1

_pathMethod · 0.95

Tested by

no test coverage detected