bulkimport + curl + delete files

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

bulkimport + curl + delete files

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

1 Reply
Customer

Re: bulkimport + curl + delete files

After a standard bulk import you need to clean manually your PDF and XML files (for example, via crontab and find / rm commands in linux). In Enterprise edition, you can use inplace bulks (in this case you may need to delete not the PDF but XML files).

Regards.

--C.