Houdini 18.0 Nodes TOP nodes

File Remove TOP node

Deletes a file at a specified path.

On this page

Tip

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.

Parameters

Mode

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.

File Path

When Mode is "Custom File Path", the path to the file to delete.

File Tag

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.

Ignore Errors

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.

Dry Run

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.

Examples

example_top_fileremove Example for File Remove TOP node

This example demonstrates how to remove a file using the Remove File node.

TOP nodes