We are currently adding the possibility to let the user choose whether a page is moved to the recycle bin or removed permanently (see XWIKI-17401 - Option for deleting documents and/or attachments without sending to recycle bin for more details).
To communicate the choice of the user, I propose to introduce a new parameter, called toRecycleBin
to the page removal form.
- when the user choose to send the document to the recycle bin,
toRecycleBin=1
is sent to the delete action. - when the user choose to remove permanently the document,
toRecycleBin=0
is sent to the delete action. - when the parameter is missing because the user does not have the right to choose, the default behavior of the wiki applies (ie, sending to the recycle bin if it exists, remove permanently otherwise).
See the current Github PR:
Do you agree with the naming of the parameter and the transmitted values?