DELETE

LANSA Integrator

DELETE

The DELETE command allows a directory or file to be deleted from the remote FTP server.

 

 DELETE ---------- DIR ------------- directory path ----------->

 

               >-- FILE ------------ file path ----------------|

 

Keywords

DIR

A directory path name is mandatory if no FILE keyword is supplied.

This value can be a relative or absolute path.

FILE

A file path name is mandatory if no DIR keyword is supplied.

This value can be a relative or absolute path.

Examples

RDML

To delete a directory and any files under the directory:

 

USE BUILTIN(JSM_COMMAND) WITH_ARGS('DELETE DIR(/upload)') TO_GET(#JSMSTS #JSMMSG)

 

or to delete a single file:

 

USE BUILTIN(JSM_COMMAND) WITH_ARGS('DELETE FILE(/upload/order.xml)') TO_GET(#JSMSTS #JSMMSG)

 

RDMLX

To delete a directory and any files under the directory:

 

use builtin(jsmx_command) with_args(#jsmhandle 'delete dir(/upload) ') to_get(#jsmsts #jsmmsg)

 

or to delete a single file:

 

use builtin(jsmx_command) with_args(#jsmhandle 'delete file(/upload/order.xml) ') to_get(#jsmsts #jsmmsg)