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

Function snapshot_delete

unity_cli/cli/commands/uitree.py:786–796  ·  view source on GitHub ↗

Delete a saved snapshot.

(
    name: Annotated[str, typer.Option("--name", help="Snapshot name to delete")],
)

Source from the content-addressed store, hash-verified

784@snapshot_app.command("delete")
785@handle_cli_errors
786def snapshot_delete(
787 name: Annotated[str, typer.Option("--name", help="Snapshot name to delete")],
788) -> None:
789 """Delete a saved snapshot."""
790 from unity_cli.api.uitree_snapshot import SnapshotStore
791
792 _validate_snapshot_name(name)
793 if SnapshotStore().delete(name):
794 print_success(f"Deleted snapshot '{name}'")
795 else:
796 print_line(f"Snapshot '{name}' not found")

Callers

nothing calls this directly

Calls 5

SnapshotStoreClass · 0.90
print_successFunction · 0.90
print_lineFunction · 0.90
_validate_snapshot_nameFunction · 0.85
deleteMethod · 0.45

Tested by

no test coverage detected