|On this page|
You may want to avoid using destructive file operations such as move/rename and remove. They can make files appear to be missing, triggering the dependency system to do extra work. They can also make it harder to debug the network after it runs if intermediate files are not where they were.
How do decide what file(s) to delete:
Custom File Path
Set the path to the file to delete in the File Path parameter.
Upstream Output Files
Delete any file paths in the
output attributes of incoming work items if they have the given file tag.
When Mode is "Custom File Path", the path to the file to delete.
When Mode is "Upstream Output Files", delete paths in the
output attributes of incoming work items if they have this file tag.
Add Deleted Files as Output Files
Set the deleted file paths as the
output of the outgoing work items.
If this is off (the default), the node continues even if trying to remove a file causes an error (for example, if the file path does not exist). If this is on, if trying to remove a file causes an error, the node will error.
Turn this on to prevent the node from actually deleting any files. This is useful for testing what will be deleted. Turn on Add deleted files as result data so you can see the files that would have been deleted in the
output attributes of the outgoing work items.