cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting a specific document version

pf
Champ in-the-making
Champ in-the-making
Hi,

I am using Alfresco 1.4.

At the moment when I click on the "delete" button, the web client asks me if I want to delete all document versions.

I would like to know how to customize the web client application to allow deletion of a specific document version, for example the last one.

Thank you for your reply.

Bye
Paul
4 REPLIES 4

gavinc
Champ in-the-making
Champ in-the-making
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.

http://wiki.alfresco.com/wiki/Adding_a_Custom_Dialog
http://wiki.alfresco.com/wiki/Customising_The_Create_Content_Wizard

Hope this helps.

travman
Champ in-the-making
Champ in-the-making
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.

Thanks

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

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.

Cheers,
Roy

coffman
Champ in-the-making
Champ in-the-making
Regarding something similar to this topic …

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.

Note: I am using Alfresco 2.0 community version

Regards