Delete files in trashcan using CMIS 1.1 ?

cancel
Showing results for 
Search instead for 
Did you mean: 
Member II

Delete files in trashcan using CMIS 1.1 ?

Hi everybody,

is it possible to retrieve/delete the global trashcan, e.g.

http://localhost:8008/share/page/user/admin/user-trashcan

by using CMIS?

I want to delete the admins trashcan and tried the following, but with no results:

             OperationContext oc = OperationContextUtils.createMinimumOperationContext();

             final String queryString = "SELECT * FROM cmis:document where CONTAINS('PATH:\"/share/page/user/admin                /user-trashcan\"')";

             //queryResult is null

             ItemIterable<QueryResult> queryResult = session.query(queryString, false, oc);

          

Due to privacy protection our trashcan must be deleted constantly. What would be the way to go here?
Thanks in advance!

1 Reply
Senior Member II

Re: Delete files in trashcan using CMIS 1.1 ?

You can configure schedule job for cleaning trashcan.Change cron as per your requirement and put that cron in alfresco-global.properties file.

Configuring the Trashcan Cleaner | Alfresco Documentation 

Thanks

Contcentric

Thanks & Regards,
Sanjay