swift client tool allows us to directly delete containers and objects within our OpenStack Storage environment.
Log in to a computer or server that has the
swift client package installed.
Carry out the following to delete objects in our OpenStack Storage environment:
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
Deleting multiple objects
tmp/example-500Mb, we issue the following command:
swift -V 2.0 -A http://172.16.0.1:5000/v2.0/ -U cookbook:demo ...