AnsweredAssumed Answered

bulkimport + curl + delete files

Question asked by livier on Nov 16, 2018
Latest reply on Nov 16, 2018 by cesarista

Hi everyone,


I use this following comand line to import documents and their metadata in alfresco


curl -v -u admin:admin -L POST --url "localhost:8080/alfresco/s/bulkfsimport/initiate" --data "targetPath=/Sites/test/documentLibrary&sourceDirectory=/tmp/test&existingFileMode=REPLACE"


It works fine but I'd like to know if there is an option which delete pdf and xml files once they've been imported.


All of my pdf and xml files will be automaticaly uploaded in the folder /tmp/test and this comand line will be used in a batch and a cron. I have to delete the files that have already been imported in the application.


Thanks in advance