cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

File Delete after Multi Read

jeremy_may
New Contributor

After using the Multi Read snap, is there any functionality that allows for the orignal files to be deleted? I found when using File Delete snap an error is received; is it possible to have multiple files deleted at once with available snaps?

1 REPLY 1

sriram
Former Employee

Upon completion of the read operation, the โ€œMulti File Readerโ€ snap produces an output document that contains this field: content-location. Pass $[โ€˜content-locationโ€™] to the โ€œFile Deleteโ€ snap with expression enabled for the โ€œFileโ€ property. To ensure files are deleted only at the time of pipeline execution, uncheck โ€œExecute during previewโ€ on the File Delete snap.

Note: Currently, the โ€œFile Deleteโ€ snap supports deletions one file at a time.