You can override the "deleteSpace" dialog configuration to point to your custom JSP page with the extra option and also extend the DeleteSpaceDialog class to deal with the new option.
Have a look at the following wiki pages for examples of creating/customising dialogs.
To delete document versions, I extended DeleteContentDialog (for the dialog "deleteFile") and created a specific jsp based off of delete.jsp
However, with a document listing these versions:
1.1 1.2 1.3 1.4
if I delete the node representing "1.3" such as "workspace://lightWeightVersionStore/0ab25820-ccad-11db-80e0-357d7053c850" by using "nodeService.deleteNode(nodeRef)"
each document version node previous to "1.3" is also deleted and the result of the process is that only version "1.4" remains.
I'm trying to delete only version "1.3" without deleteing previous versions as well. Have any of yall found a way around this.
We don't currently support the deletion of individual version in a version history.
Probably the best way to go about doing this, should you need to, is to look at the structure of the version store and delete the version from there directly.
Once the version has been removed you will need to re-patch the version history sequence correctly.
Is it possible to delete all versions except the last one?
The main problem i try to solve is that I set mandatory-aspect versionable for all content (large content ~4GB) , and now the repository is extremely slow when copying , updating or downloading from CIFS or FTP .
I think that the system becomes unusable when verionable is activated for all repository.