Delete a saved snapshot.
(
name: Annotated[str, typer.Option("--name", help="Snapshot name to delete")],
)
| 784 | @snapshot_app.command("delete") |
| 785 | @handle_cli_errors |
| 786 | def 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") |
nothing calls this directly
no test coverage detected