Purge single document or folder

He we will discuss about how to make customization and improvement to the OpenKM source code.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
dharm826
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Mon Dec 09, 2019 5:38 am

Purge single document or folder

Post by dharm826 »

Hi
Is there an api(.net/java) available for purging single document and folder? And for restoring as well.

jllort
Moderator
Moderator
Posts: 11123
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Purge single document or folder

Post by jllort »

Remember when you "purge" a node is totally removed from the system and can not be longer recovered. Is not the same operation "delete" that moves the document into the trash than "purge" where the node is completely removed.

Take a look at ( same actions for delete in the same documentation sections )
https://docs.openkm.com/kcenter/view/sd ... geDocument
Seems currently we do not have "purgeFolder" in .NET but may be executed from scripting:
https://docs.openkm.com/kcenter/view/sd ... cuteScript
https://docs.openkm.com/kcenter/view/ok ... html#purge

If you want we add the method in .NET please add an issue at https://github.com/openkm/document-mana ... tem/issues

dharm826
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Mon Dec 09, 2019 5:38 am

Re: Purge single document or folder

Post by dharm826 »

Thank you for the support. This has been very helpful. I have created an issue for purge folder. Can you share the information and duration regarding the whole process of such issue.

jllort
Moderator
Moderator
Posts: 11123
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Purge single document or folder

Post by jllort »

It depends on the load or work we have during the process, maybe 1-2 weeks.

Post Reply