XWIKI-9595: Ask confirmation for pages not needed anymore before deleting them
* Update test.

(cherry picked from commit ddb5d71e6b19056afb7dcbfb0d67d8d84e51973e)