def delete_author(author_id): if db_handler.delete_author(author_id): flash('The author successfully removed') return redirect(url_for('index'))