Delete Pages

Use Delete Pages to move a page (or pages) and all of its children to the trash.

This built-in script works around an issue where deleting a page with child pages caused the child pages to move to the top level of the space.

Using this built-in script requires remove privileges to each page you are trying to remove. If you don’t have permission for one of the pages, then no pages are removed.

Run the script

Follow these steps to run the built-in script:

  1. Navigate to General Configuration > ScriptRunner > Built-In Scripts.
  2. Select Delete Pages.
  3. Enter the Space to view the contained pages.

  4. Select the Pages you want to delete when the field appears. 

    If you do not select any checkboxes, an error appears that says "No space or pages provided."

  5. Select Run.

    You can select Preview instead of Run to view changes before implementing them.

Results

Once you select Run, the Results of the script appear.

On this page