def nuke_design_documents

      docs = get('_all_docs')['rows']

      views = docs.select { |d| d['id'] && DESIGN_PATH_REGEX.match(d['id']) }

      views.each { |v| delete(v['id'], v['value']['rev']) }
    end
def nuke_design_documents

      docs = get('_all_docs')['rows']

      views = docs.select { |d| d['id'] && DESIGN_PATH_REGEX.match(d['id']) }

      views.each { |v| delete(v['id'], v['value']['rev']) }
    end
A development method. Removes all the design documents in this couch
 database.

 Used in tests setup or teardown, when views are subject to frequent
 changes (rufus-doric and co).