Skip to end of metadata
Go to start of metadata

Deleting all pages within a Canvas Course can be tedious as there isn't the ability to "Select All" pages.

Step-by-step guide

  1. Open the "Inspector" for your Browser
  2. Go to "Console"
  3. Within the Course go to "All Pages"
  4. Scroll to the end of the page to load them all
  5. Paste the following into the Console and press "Enter"

    document.querySelectorAll('input[type="checkbox"]').forEach(function(checkbox) {
        if (!checkbox.checked) {
            checkbox.click();
        }
    });

  6. Delete them as normal