HowDoIDeleteACouchDBDatabase

How do I delete a CouchDB database

Databases in CouchDB are identified simply by their names. The standard names used by Ubuntu One/!DesktopCouch are the following:

  • contacts: Evolution Contacts (evolution-couchdb)

  • notes: Tomboy Notes

  • bookmarks: Bindwood Firefox plugin for bookmarks

Please use corresponding database name instead of $dbname (e.g. to remove evolution contacts, use contacts database)

Open Applications->Accessories->Terminal and run:

  cd /tmp
  wget http://people.canonical.com/~roman.yepishev/us/ubuntuone-couchdb-query
  python ubuntuone-couchdb-query --http-method=DELETE $dbname 

This will remove the corresponding database from couchdb.one.ubuntu.com.

Please note that the replication will synchronize your database again, you will need to remove local desktopcouch database too:

  cd /tmp/
  wget http://people.canonical.com/~roman.yepishev/us/desktopcouch-admin.py
  python desktopcouch-admin.py --drop $dbname 

This will remove the database from your local CouchDB instance and it will no longer be synchronized. Please note that you will need to perform the last step on every computer you have synchronized to.

Still have questions?

If this doesn't answer your question, please contact us.



Ubuntu One FAQs

UbuntuOne/FAQ/HowDoIDeleteACouchDBDatabase (last edited 2011-05-05 14:49:15 by pool-71-114-233-7)