
OpenStack Cloud Computing Cookbook
By :

Deleting OpenStack Object Storage containers is quite simple. Any container can be deleted, for as long as they are empty.
In this case, the OpenStack CLI has different behavior from the Swift CLI tool. The Swift CLI will delete container with all of its contents, while the OpenStack CLI will not. In this example, we are using the OpenStack CLI.
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 OpenStack command-line client.
To delete a Swift container in our environment, execute the following steps:
First, list the available containers...
Change the font size
Change margin width
Change background colour