Skip to main content
Version: v6.5.0

Delete file

Command Description

Delete files specified in the file transfer service

Command Prototype

bRet = CommanderFileService.DeleteFile(sRemotefile)

Command parameter

parametermandatorytypedefault valueInstructions
sRemotefileTruestring""The file path specified in the file transfer service

Return result

BRet, Assign the result of running the command to this variable.

Run instance

/*********************************Delete File****************************************
Command Prototype:
bRet = CommanderFileService.DeleteFile(sRemotefile)
Input Parameters:
sRemotefile -- Remote file. Note: The specified file path in the file transfer service.
Output Parameter:
bRet -- The variable where the output of the function call will be saved.
Notes:
None
********************************************************************************/
Dim bRet = ""
bRet = CommanderFileService.DeleteFile("")
TracePrint(bRet)