Currently, XWiki always store deleted documents in a recycle bin, including the attached documents.
That might lead to large space use overtime, or even blocking situations due to low disk space (see XWIKI-17401).
To address this issue, we propose to add an option to allow user to skip the recycle bin when removing documents.
Since that’s an irreversible action, it should be:
- clearly advertised as dangerous in the UI, so that user does not mistakenly perform this action.
- be proposed only to advanced users.
- be activable by the administrators.
For the user, this action takes to form of a set of radio buttons on the document removal.
If the feature is not activated, the current message “Are you sure you wish to move this page to the recycle bin?” is displayed, without the radio buttons.
For the administrators, the configuration of this feature can either be:
- A configuration key in
xwiki.properties
:edit.document.skipRecycleBin.enabled = false
. - A new entry in
XWiki.XWikiPreferences
:
The default value for the option is false
, ie, the feature is not activated by default.
Activating this feature only opens this operation to users that choose to Advanced user type in their user settings.
WDYT?
Which alternative do you prefer regarding the administration?