def reset_content(): articles_collection = Article.get_collection() articles_collection.remove() worker.run('retrieve_common_articles', app.config['SOURCE_CONTENT']) return "ok"