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

1 Answer 1

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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