How do I delete all book page nodes, book outline, and uninstall book module I would like to remove a book, its contents, its outline, and uninstall the book module itself.
I deleted all the &quot;Book page&quot; content type nodes. I then deleted the one book listed under:
admin/structure/book
However, when I try and uninstall the module using Drush I get the message:
&quot;To uninstall Book, delete all content that is part of a book&quot;
I'm assuming this is the outline data on non &quot;Book page&quot; nodes that I missed, but there's nothing there in the Admin UI to tell me which ones they are. The UI says &quot;No books available.&quot;
There is a module that addresses the issue of deleting book pages and their outlines in this answer here in Drupal 7.
Is there a way to easily find and delete that book content and uninstall the module in Drupal 8?
It sounds like you have orphaned book content. You can go look for any nodes of type book page at /admin/content, and delete them all. Also, check your configuration of the book module to see if any other content types are enabled as book content. You may have to determine which nodes of those content types have been created as book pages but not assigned to an outline.