• Emptying Trash

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
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.
 #1099  by sbs
 
Hi,

I want to know if it is possible to empty the trash using webservices?

We are using OpenKM as a temporary repository of documents, and want to keep documents for a limited amount of time. I\'ve written a program that checks the creation dates of the documents and deletes them if they are over a certain number of days old, but they end up in the trash. Is it possible to empty the trash in my program, or do I need to log in from time to time to empty it, or is it possible to set the trash to empty automatically after a certain amount of time?

Cheers
 #1118  by pavila
 
There is a purgeTrash method in OKMRepository class.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.