-
Book Overview & Buying
-
Table Of Contents
OpenStack Cloud Computing Cookbook - Fourth Edition
By :
Deleting objects from OpenStack Object Storage is fairly trivial, whether for small or large files.
Ensure that you are logged on to a correctly configured OpenStack client and can access the OpenStack environment as a user with the swiftoperator privileges. We will use the developer user created in the Common OpenStack identity tasks recipe in Chapter 2, The OpenStack Client, with the cookbook4 password. We have also granted this user the swiftoperator privileges.
Refer to Chapter 2, The OpenStack Client, for details of setting up your environment to use the OpenStack command-line client.
To delete objects from our Swift cluster, carry out the following steps:
List available objects in a container:
openstack object list books
This will give a list of objects in our books container:

Delete the object from a container:
openstack object delete books intro.txt
There will be no output from this command.
List objects in the books container after deletion...
Change the font size
Change margin width
Change background colour