Deletes the specified PDF file.
If only a PDF file name is used, the command attempts to be delete this file from the root directory of the JSMServer instance.
DELETE ---- FILE --------- file path --------------------------|
The name of the PDF file to be deleted.
<document name>.pdf deletes a PDF file under the JSM instance root directory
documents/<document name>.pdf deletes a PDF file under the JSM instance documents subdirectory
/<document name>.pdf deletes a PDF file under the file system root directory.
Comments / Warnings
The DELETE Command does not require a connection to a host IBM i as the path for the PDF file to be deleted is relative to the JSM Server Instance.
USE BUILTIN(TCONCAT) WITH_ARGS('delete file(' #JSMPDFDOC ')') TO_GET(#JSMCMD)
USE BUILTIN(JSM_COMMAND) WITH_ARGS(#JSMCMD) TO_GET(#JSMSTS #JSMMSG)
#jsmcommand := 'delete File(' + #jsmpdfdoc + ')'
use builtin(jsmx_command) with_args(#jsmxhdle1 #jsmcommand) to_get(#jsmxsts #jsmxmsg #spoollst)