Delete part of File Operation snap

Hi Team,

Would it be possible to consider “Delete” as an operation for File Operation snap pack. In a generic implementation where we taking operation as a pipeline parameter this helps to cover both move (archive) as well delete (purge) option for file transfer behaviour with a single snap, avoiding router and union steps.

Regards,
Sripathi

@sg_sripathi, what you’re describing is actually the “Move” file operation. The File Operation snap has only three operations: Move, Copy, and Rename.

However, you can make a little transformation for the “Delete”:

_operation == "Delete" ? "Move" : _operation

where operation is a pipeline parameter.

2 Likes

Thanks @igormicev. However due to large volume of file at the source I really need to delete the files once processed, moving is not an option.