Skip to content

Instantly share code, notes, and snippets.

@Natim
Created October 21, 2012 15:54
Show Gist options
  • Save Natim/3927331 to your computer and use it in GitHub Desktop.
Save Natim/3927331 to your computer and use it in GitHub Desktop.
Delete all tables
import requests
import couchdb
server = couchdb.client.Server()
tables = requests.get('http://localhost:5984/_all_dbs')
for table in tables.json:
if table.startswith('daybed-test'):
del server[table]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment