vsphere_delete_snapshot
Delete a single snapshot, snapshot subtree, or all snapshots of a VM. Consolidates data into the parent disk while preserving current VM state.
Instructions
Delete one snapshot, a snapshot subtree, or every snapshot of a VM.
Deleting a snapshot consolidates its data into the parent disk; the VM
keeps all current data. Requires permission mode destructive.
Args:
vm: VM name, managed object id, UUID or inventory path.
snapshot: Snapshot name, path or moid. Ignored when delete_all
is set.
remove_children: Also delete snapshots taken from this one.
delete_all: Delete the entire snapshot tree ("Delete All" in the
vSphere client).
wait: Wait for the delete task to finish.
timeout_seconds: Override the default task timeout. Consolidation of
large snapshots can take a long time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| wait | No | ||
| snapshot | No | ||
| delete_all | No | ||
| remove_children | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||