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.