delete_snapshot
Remove unwanted develop snapshots from Lightroom Classic to manage photo editing history and optimize catalog organization by specifying snapshot IDs.
Instructions
Delete a develop snapshot by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| snapshot_id | Yes | ||
| local_ids | No |
Implementation Reference
- The `delete_snapshot` tool handler, which validates the snapshot ID and calls the underlying `develop.delete_snapshot` Lightroom method.
async def delete_snapshot( snapshot_id: str, local_ids: list[int] | None = None, ) -> dict[str, Any]: """Delete a develop snapshot by its ID.""" if not snapshot_id: raise ValueError("snapshot_id is required") ids = validate_local_ids(local_ids) payload: dict[str, Any] = {"snapshot_id": snapshot_id} if ids: payload["local_ids"] = ids return await _call("develop.delete_snapshot", payload)