1

I often want to clear a remote CMIS folder programmatically (from a script).
For instance to remove test files or do some recurrent clean-up.

Requirements:

  • Executable from command-line
  • Takes a CMIS folder in input
  • Remove all documents and sub-folders from that folder
  • Gratis, preferably open source
  • Works with Alfresco/Nuxeo/SharePoint/Documentum and as many other CMIS servers as possible
3

I did not find such a tool so I wrote this one:

https://github.com/nicolas-raoul/clear-cmis-folder

Usage:

./clear-cmis-folder.sh /the/folder http://the/cmis/url theuser thepassword

It removes all documents and folders under that path.
Gratis, MIT license.
Tested on Alfresco.

  • I was going to suggest that python could probably do the job and found that is how you have done it +1. – Steve Barnes Apr 3 '17 at 20:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.