Page 1 of 1

Script for purging user trash

PostPosted:Fri Jan 25, 2013 12:08 pm
by Catscratch
Hi,

can you please provide me an actual script for okm 6.2 to purge all user trash?

In 5.1 I used this one: http://wiki.openkm.com/index.php/Script ... sers_trash

Re: Script for purging user trash

PostPosted:Sat Jan 26, 2013 8:02 pm
by jllort
The only difference from version 6.x is how to get systemToken
Code: Select all
import com.openkm.module.db.stuff.DbSessionManager;
String systemToken = DbSessionManager.getInstance().getSystemToken();
The rest of the code should be the same. Tell me if it do not run to you.

Re: Script for purging user trash

PostPosted:Mon Jan 28, 2013 8:03 am
by Catscratch
Thanks!