Skip to main content Skip to complementary content

tFileDelete Standard properties

These properties are used to configure tFileDelete running in the Standard Job framework.

The Standard tFileDelete component belongs to the File family.

The component in this framework is available in all Talend products.

Basic settings

File Name

Path to the file to be deleted. This field is hidden when you select the Delete folder check box or the Delete file or folder check box.

Information noteWarning: Use absolute path (instead of relative path) for this field to avoid possible errors.

Directory

Path to the folder to be deleted. This field is available only when you select the Delete folder check box.

Information noteWarning: Use absolute path (instead of relative path) for this field to avoid possible errors.

File or directory to delete

Enter the path to the file or to the folder you want to delete. This field is available only when you select the Delete file or folder check box.

Information noteWarning: Use absolute path (instead of relative path) for this field to avoid possible errors.

Fail on error

Select this check box to prevent the main Job from being executed if an error occurs, for example, if the file to be deleted does not exist.

Delete Folder

Select this check box to display the Directory field, where you can indicate the path the folder to be deleted.

Delete file or folder

Select this check box to display the File or directory to delete field, where you can indicate the path to the file or to the folder you want to delete.

Advanced settings

tStatCatcher Statistics

Select this check box to gather the Job processing metadata at a Job level as well as at each component level.

Global Variables

Global Variables

DELETE_PATH: the path to the deleted file or folder. This is an After variable and it returns a string.

CURRENT_STATUS: the execution result of the component. This is a Flow variable and it returns a string.

ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl + Space to access the variable list and choose the variable to use from it.

For further information about variables, see Talend Studio User Guide.

Usage

Usage rule

This component can be used as standalone component.

Connections

Outgoing links (from this component to another):

Row: Main.

Trigger: On Subjob Ok; On Subjob Error; Run if; On Component Ok; On Component Error.

Incoming links (from one component to this one):

Row: Main; Reject; Iterate.

Trigger: Run if; On Subjob Ok; On Subjob Error; On component Ok; On Component Error; Synchronize; Parallelize.

For further information regarding connections, see Talend Studio User Guide.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!