Issue link: https://read.uberflip.com/i/1334488
Chapter 5 119 Getting ready Log in to a computer or server that has the swift client package installed. How to do it... Carry out the following to delete objects in our OpenStack Storage environment: Deleting objects To delete the object tmp/test/test1, we issue the following: swift -V 2.0 -A http://172.16.0.1:5000/v2.0/ -U cookbook:demo -K openstack delete test tmp/test/test1 This deletes the object tmp/test/test1 from the container test. Deleting multiple objects To delete the objects tmp/test/test2 and tmp/example-500Mb, we issue the following command: swift -V 2.0 -A http://172.16.0.1:5000/v2.0/ -U cookbook:demo -K openstack delete test tmp/test/test2 tmp/example-500Mb This deletes the objects tmp/test/test2 and tmp/example-500Mb from the container test. Deleting containers To delete our test container we issue the following command: swift -V 2.0 -A http://172.16.0.1:5000/v2.0/ -U cookbook:demo -K openstack delete test This will delete the container and any objects under this container. Deleting everything from our account To delete all containers and objects in our account, we issue the following command: swift -V 2.0 -A http://172.16.0.1:5000/v2.0/ -U cookbook:demo -K openstack delete --all This will delete all containers and any objects under these containers. www.it-ebooks.info

