Here is How To Empty a Swift Container & CDN on HP Helion Cloud Where the Container Has Multiple Files and Pseudo Directories. This action can not be done via Web GUI. OpenStack Swift of HP Helion Cloud is linked with Akamai CDN, just like Rackspace. Except HP, none of us are the “admin” of that associated Akamai CDN account. The function is integrated via API. There are web GUI tools to manage HP Cloud CDN for the clients but we will use Python Client on Mac for giving example of How To Empty a Swift Container & CDN a typical Object Container and associated CDN irrespective of the vendor.
Empty a Swift Container & CDN (HP Cloud) : Install the Python Client
You must have OpenStack Swift Python client installed on your local computer in the way described before and have the
OPENSTACKRC file’s content on your active profile file – for iTerm2, Homebrew and ZSH, this can be
Empty a Swift Container & CDN (HP Cloud) : Steps
Feedburner does not allow HTTPS urls. We have a fix for that Feedburner Feed URLs for HSTS websites. The linked url is a guide for Rackspace Cloud Files, which is basically OpenStack Swift Object Container linked CDN. Quite obviously, after using for a month in this format of new directories :Advertisement
feeds container needs flushing. Only one thing to remember in this regard – the active region on your profile file must match with the HP Cloud CDN’s region. You can run a simple command in [example case with
cat .zshrc | grep "OS_AUTH_URL"
Then do a listing :
Then run this format of command :
swift delete <container-name>
You will get kind of list on command line of what is getting deleted. Now, login to HP Cloud account; go to Containers and create container of the name you want. It can be the older name. Set the TTL to very low. If you do not want to delete the container, then run this :
swift delete <container-name> *
Do these steps before publication of a new post in case you are using for feed. Else Feedburner will get 404.