def delete_book(book_id): if db_handler.delete_book(book_id): flash('The book successfully removed') return redirect(url_for('index'))