Full path: /system/sftp/delete-wildcard
Deletes from the SFTP server any files that match a wildcard, for example, *.xml.
This function returns a list of strings with the deleted file names, if the execution has been successful. Otherwise, the outcome depends on the Abort on error parameter, as further described below.
A FlowForce object that provides the SFTP connection. To obtain the SFTP connection object, call the /system/sftp/connect function first, in a separate execution step.
Mandatory parameter. Specifies a wildcard, for example, *.xml. Any files matching the wildcard will be deleted. See also Wildcards in SFTP functions.
Abort on error
This Boolean parameter determines what should be the return value of the function if execution fails. If this parameter is false, the function will return the list of directory names that were successfully deleted and omit those file names that for some reason could not be deleted. If this parameter is true, the job execution is aborted in the first file that could not be deleted. The default value is true.