• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Bulk Delete OpenStack Object Storage (Swift) Objects

By Abhishek Ghosh June 23, 2015 9:44 am Updated on June 23, 2015

Bulk Delete OpenStack Object Storage (Swift) Objects

Advertisement

We often need to fully clean a container by deleting all the contents. Here is How to Bulk Delete OpenStack Object Storage (Swift) Objects. It is important to properly configure OpenStack Python Client first. We are using HP Cloud as client of their OpenStack Object Storage (SWIFT) service. This eventually deletes all the CDN objects as well.

 

Bulk Delete OpenStack Object Storage (Swift) Objects on Command Line Interface

 

We will use Python Swift Client. So the commands are actually documented in official website. We can test the Python Swift Client by running :

Vim
1
swift list

We will get an unordered list of the containers like this :

Advertisement

---

Vim
1
2
3
4
5
6
7
Abhishek-Ghosh
Downloads
feed
feeds
help
octopress
security-garden

Bulk Delete OpenStack Object Storage (Swift) Objects

We should double check from HP Cloud web GUI to make sure what exactly we are deleting. In our example, we want to delete the contents of the container named feeds. So, we need a positional argument and indicate to delete all with a flag. But basically, from our experience, it is better to delete the container itself :

Vim
1
swift delete feeds

Upon execution of the command, we will get an output. In our example, the container is published as CDN. We were using it to store XML Feeds on non-HTTPS URL for Google Feedburner. It is a fix for Feedburner’s no support for HTTPS.

Then if we can create same named container from web GUI within few seconds of deletion, the container specific setting remains intact! It remains intact or not – actually deleting a container is equivalent to deleting all the objects. Same named container can be created. We were also thinking in that complex way possibly you are searching for.

Actually we can not use * to delete all. --all or -all flag works a bit oddly. Second way to delete all is using auth token. We have HP Cloud specific OpenStack Object Storage (Swift) token generation guide.

Reverse of Bulk Delete is Bulk upload. That we have Python Based She Bang Script to automate the bulk upload work.

 

Bulk Delete OpenStack Object Storage (Swift) Objects : Mini Video Guide

 

Here is a very short video without any voiceover only to make you understand what exactly we do to delete all the contents of a container. Here is the video of what exactly we did :

Tagged With force delete object storage openstack , openstack swift bulk delete , swift bulk delete , swift command bulk delete
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Bulk Delete OpenStack Object Storage (Swift) Objects

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • Python Script to Upload Files to OpenStack Swift (HP Cloud CDN)

    Here is a Simple Python Script to Upload Files to OpenStack Swift, for Our Case HP Cloud CDN. Very easy to use from Mac or Linux Server.

  • OpenStack Swift & HPCloud CDN PHP Bindings : Basics

    Here is the basics of OpenStack Swift & HPCloud CDN PHP Bindings for the WordPress Plugin developers and those who works with PHP based CMS.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy