Empty trashcan for specific user only

cancel
Showing results for 
Search instead for 
Did you mean: 
vojtechm
Active Member

Empty trashcan for specific user only

Hello,

is there a way to empty trashcan only for particular user via webscript? Or is there a way how to delete nodes without them putting to trashcan for specific user?

Thank you.

Br, Vojtech

2 Replies
janv
Alfresco Employee

Re: Empty trashcan for specific user only

With Content Services 5.2, you can list the deleted nodes for a given user and then delete them one-by-one. 

Alfresco Content Services REST API Explorer 

In the future, we will also add the option to empty the trashcan as a single operation &/or via a batch operation.

[REPO-126] Purge All Deleted Nodes - Alfresco JIRA 

You also have the option to use the deprecated Web Scripts (aka "V0 REST API"):

DELETE permanently (purge) a node or nodes from the archive | Alfresco Documentation 

In this case (I haven't had a chance to test & verify) it should purge the archived nodes deleted by the current user, although if the current user is an Administrator then all the deleted nodes are purged.

Hope this helps.

Regards,

Jan

vojtechm
Active Member

Re: Empty trashcan for specific user only

Hello,

thank you, that helped me a lot.

Br, Vojtech