Delete pages when deleting a book.