"delete page tree" option missing from the menu on some pages
Asked by WPSC:

On some pages the "delete page tree" option appears in the ... menu and on some pages it does not. These several pages is in the same space and the pages are parent pages with multiple child pages. The space has Scroll Versions turned on if that is relevant. Does anyone know what causes this?


Answers:
author: Lukas Knoch -Rumpelcoders-
body: Hi, our plugin was not tested with the Scroll Version plugin. We will test the compatibility and post our results here but as your experience already imposes there might be problems.

Regards,

Lukas

comments: author: Lukas Knoch -Rumpelcoders-
body: Which Confluence version are you on?


author: WPSC
body: Lukas, it would be helpful if you could describe the logic used to determine if the option is displayed in the menu. We know it is omitted if there are no child pages, but there must be some other reasons as well.

Thank you


author: WPSC
body: We are using Confluence Server v.5.8.10, Scroll Versions 3.0.8


author: Lukas Knoch -Rumpelcoders-
body: The only restrictions for viewing the item are iff it is a page (not a blog post etc.) and the page has children. I am suspecting that scroll does not use the default confluence structure but I can tell you more in a view minutes. Just installed Scroll Versions . :wink:


author: Lukas Knoch -Rumpelcoders-
body: Unfortunately Scroll Versions changes the internal structure of confluence (as far as i can see). The page you are seeing is not actually the page in the internal tree structure. Therefore, the "hasChildren()" does not return true as it is no operating on the right page. One would have to get the real page linked by Scroll. But that is quite a bit of work I guess.. Maybe someone from K15t ( @Nils Bier (K15t Software) ?) could provide some information about the internal structure?


author: WPSC
body: Thank you for looking into this and explaining. Versions is a very useful plug-in for its purpose but there are number of side effects of using it.


author: Nils Bier _K15t_
body: Hi guys,

thanks for mentioning me here @Lukas Knoch \[Rumpelcoders\] - versioned pages created with Scroll Versions are created as child pages of the master page in a special naming pattern (.\<Pagetitle\> \<vVersionname\>) and hidden in the page tree (but for example visible in the "View in Hierarchy" view) (see our [docs](https://www.k15t.com/display/VSN/Handling+of+Child-Pages)).

The "Delete Page Tree" option is only available on unversioned pages or when switching to the reader view (as you're then viewing the master page which actually has child pages). As we haven't tested the compatibility with the Delete Page Tree Addon completely, I'd recommend to use the built-in feature in Scroll Versions, as it comes with a similar functionality:

Screen Shot 2016-03-14 at 09.26.29.png

By clicking "Remove x descendant page(s)" you can define to delete whole subtrees in a space. Would that work for you?

**Please note the difference between a remove in a specific version in Scroll Versions and the "Remove this page and all its versions":**

* If you activate the option "Remove page and all its versions (this cannot be undone).", **the pages will be deleted without putting them to trash** (see <https://k15t.jira.com/browse/VSN-2314>), **there's no possibility to restore those pages** , so please be careful when using this option.  
  We're already working on it and will improve the current behavior in Scroll Versions 3.1.
* Without activating the checkbox to remove all page versions, only the versioned page of the selected working version will be removed when you publish the version.

Let me know if that helps.

Best,  
Nils  
[](https://community.atlassian.com/t5/Confluence-questions/quot-delete-page-tree-quot-option-missing-from-the-menu-on-some/qaq-p/386790?attachment-id=4217){#link_1190fcdef481c1}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/65413/1/Screen%20Shot%202016-03-14%20at%2009.26.29.png){#display_1190fcdef481c1_0}  
[](https://community.atlassian.com/t5/Confluence-questions/quot-delete-page-tree-quot-option-missing-from-the-menu-on-some/qaq-p/386790?attachment-id=4218){#link_1190fcdef481c1_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/65413/2/Screen%20Shot%202016-03-14%20at%2009.24.54.png){#display_1190fcdef481c1_2}

comments: author: WPSC
body: Nils,

Thank you that is helpful information. And thank you for constantly working to improve the Versions plug-in. Our users find it very useful.


author: Stephan Sutter
body: Hi,

Maybe you should give our plugin a try.

**[Marketplace-Link: Page Tree Eraser](https://marketplace.atlassian.com/plugins/eps.focuspro.PageTreeEraser/server/overview)**

Regards,  
Stephan

comments: author: WPSC
body: Stephan, Thank you for the suggestion. We suspect our problem is related to compatibility problems between the plugin we are using and Scroll Versions, which keeps multiple versions of the same page. Have you tested your plugin with Scroll Versions?

Regards

James


author: Bj?rn Eitmann
body: ... or move the pagetree in a new space named "to delete" and delete this space after moving the pages ... (just a workaround)