def delbook_by_isbn(database):
search_information = input("Enter ISBN to delete the book: ")
book_matched = search_books_by_information(database, search_information)
if not book_matched:
print("No matching records found.")
return database
print("\nMatching Books:")
for row in book_matched:
print(row)
delete_option = input("Do you want to delete information of this book? (yes/no): ").lower()
if delete_option == 'yes':
for book in book_matched:
database.remove(book)
print("Books deleted successfully.")
return database
else:
print("No books deleted.")
return database