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

Step-by-step guide

Add the steps involved:

  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


Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



Related issues