def METHOD_NAME():
    for doc_type in app_doc_types():
        res = Application.get_db().view(
            'all_docs/by_doc_type',
            startkey=[doc_type],
            endkey=[doc_type, {}],
            reduce=False,
            include_docs=True
        )
        for row in res:
            Application.get_db().delete_doc(row['doc'])