AnsweredAssumed Answered

Delete files in trashcan using CMIS 1.1 ?

Question asked by robobot on Dec 3, 2018
Latest reply on Dec 3, 2018 by sanjaybandhniya

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!

Outcomes