Houdini 17.5 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:

Single File Path

Set the path to the file to delete in the File path parameter.

Single Task Data

???

All Result Data for Tag

Delete any file paths in the output attributes of incoming work items if they have the given file tag.

File Path

When Mode is "Single file path", the path to the file to delete.

Tag

When Mode is "All result data for tag", delete paths in the output attributes of incoming work items if they have this file tag.

Add Deleted Files as Result Data

Set the deleted file paths as the output of the outgoing work items.

Override Item Index

If you want to change the index attribute of the outgoing work items, turn this on and enter an expression in the text box.

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.

The following examples include this node.

example_top_fileremove Example for File Remove TOP node

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

TOP nodes