April 2018
Intermediate to advanced
280 pages
8h 37m
English
A snapshot can be deleted by invoking the delete_snapshot() function and passing it the ID of the snapshot:
def delete_snapshot(conn): snapshot_id = "78b54fbd-8b91-4741-9fa4-34j8sdfkh456" conn.block_store.delete_snapshot(snapshot_id)
The snapshot ID can be retrieved from the id parameter of the snapshot object returned by the create_snapshot() function in the last example.