Deletion of versions of a file using web script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2013 06:17 AM
I have deleted older versions of some documents using web script. Now I want to free space on contentstore being used by deleted versions using web script. Please suggest how it can be achieved.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2013 07:24 AM
Hi,
as far as I know you can only achieve the desired result by using Java http://stackoverflow.com/questions/5230120/how-to-delete-the-versions-for-particular-space-document
You can always build your own Java-backed webscript to perform the operation.
Regards,
Andrea
as far as I know you can only achieve the desired result by using Java http://stackoverflow.com/questions/5230120/how-to-delete-the-versions-for-particular-space-document
You can always build your own Java-backed webscript to perform the operation.
Regards,
Andrea
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2013 07:27 AM
I think for that you need to have java backed webscript.
If you go under your alf_data there you can see the contentstore.deleted folder which keeps all the deleted files.
AFIK alfresco service does not provide any API to delete those files.
So, you need to write your own code which will delete the respective binaries from that folder.
If you go under your alf_data there you can see the contentstore.deleted folder which keeps all the deleted files.
AFIK alfresco service does not provide any API to delete those files.
So, you need to write your own code which will delete the respective binaries from that folder.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2013 11:31 AM
If your files are in trashcan, you can delete it from Explorer UI, or trashcan cleaner at http://forge.alfresco.com/gf/project/trashcancleaner/
Using lucene you can try searching for the document in archive store (Never tried!), if you get the node, check if you can get the noderef and then delete it.
Whenever you perform a delete, it goes in trashcan by default. Through API, if you want to delete content permanently then just add temporary aspect(ContentModel.ASPECT_TEMPORARY) to that content before delete action.
-Nikesh
Using lucene you can try searching for the document in archive store (Never tried!), if you get the node, check if you can get the noderef and then delete it.
Whenever you perform a delete, it goes in trashcan by default. Through API, if you want to delete content permanently then just add temporary aspect(ContentModel.ASPECT_TEMPORARY) to that content before delete action.
-Nikesh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2013 04:53 PM
Pankaj,
Actually Each and every content residing under alfresco follows particular lifecycle.
Content in Alfresco> (on deletion) > Archive Store > (after cleaner run)>Deleted from Archivestore but binary file still there in content.deleted folder of alf_data
So, you need to understand this before you do any operation
Actually Each and every content residing under alfresco follows particular lifecycle.
Content in Alfresco> (on deletion) > Archive Store > (after cleaner run)>Deleted from Archivestore but binary file still there in content.deleted folder of alf_data
So, you need to understand this before you do any operation
