Skip to content

Commit 683f70b

Browse files
committed
updated the volumes example file
1 parent dced607 commit 683f70b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

examples/storage_volumes.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,11 @@
6262
# clone multiple volumes at once
6363
datacrunch.volumes.clone([nvme_volume_id, hdd_volume_id])
6464

65-
# delete volumes
65+
# delete volumes (move to trash for 96h, not permanent)
6666
datacrunch.volumes.delete([nvme_volume_id, hdd_volume_id])
67+
68+
# get all volumes in trash
69+
volumes_in_trash = datacrunch.volumes.get_in_trash()
70+
71+
# delete volumes permanently
72+
datacrunch.volumes.delete([nvme_volume_id, hdd_volume_id], is_permanent=True)

0 commit comments

Comments
 (0)