XWIKI-9595: Ask confirmation for pages not needed anymore before deleting them
* Make sure the test cleanup is not done interactively, because otherwise the request is blocked.

(cherry picked from commit df80b93e58ffe6ed7ba7365c1f68d5476501d33d)