Deleting all documents in CouchDB
问题 I have a database and I want to truncate all records, I know it is possible to just add a _deleted key to every document or call db.delete() on CouchDB-python library. I am using the delete of couchdb-python but it does not seem to work when I fetch all the documents and then call .delete on each document excluding design documents. Here is my code. docs = get_db().view('_all_docs', include_docs=True) for i in docs: if not(i['id'].startswith('_')): get_db().delete(i) This is the error.