DELETE

LANSA Integrator

DELETE

Deletes the specified file. If you do not specify the path, or if you specify a relative path, the ZipService attempts to delete the file relative to the JSM instance directory.

 

 DELETE ---- FILE --------- file path ---------------------------|

 

Keywords

FILE

The path and name of the file to be deleted.

For example:

<document name>.zip deletes a file under the JSM instance root directory

documents/<document name>.zip deletes a file under the JSM instance documents subdirectory

/<document name>.zip deletes a file under the file system root directory.

Examples

RDML

 

USE BUILTIN(TCONCAT) WITH_ARGS('DELETE FILE(' #FILEPATH ')') TO_GET(#JSMCMD)

USE BUILTIN(JSM_COMMAND) WITH_ARGS(#JSMCMD) TO_GET(#JSMSTS #JSMMSG)

 

RDMLX

 

use builtin(jsmx_command) with_args(#jsmxhdle1 'delete file(deleteme.zip)') to_get(#jsmxsts #jsmxmsg)