FILEDELETE

Usage

TIBCO iProcess Workspace (Browser)

TIBCO iProcess Workspace (Windows)

Delete a file.

Syntax

FILEDELETE (filename)

where filename is a text string specifying the name of the file to be deleted, as either a simple filename or full path.

The following environment variables may be used in a pathname:

TEMP, the temporary directory on the iProcess Workspace client.
HOME, the user’s queue directory on the server, SWDIR\queues\username.
Note: This directory is not created automatically. This means that before using this environment variable you should check that it exists, otherwise the function will fail.

Returns

One of the following numeric values:

Value

Description

1

Success

-4

Failed to delete file for any reason.

Examples

TIBCO iProcess Modeler:

This command deletes a file in the current directory.

FILEDELETE ("names.txt")

TIBCO Business Studio:

IPEFileUtil.FILEDELETE("names.txt");