<< back to sysax.com Product page |
The ftpdelete command is used to delete files and folders. The predefined keywords local and remote are used to apply this command on either the local or remote computer. The predefined keywords file and folder are used to specify whether the item is a file or folder. Folders will be recursively deleted. The ftpresult
predefined status flag is set to the predefined constant success
if the command completed successfully.
Exhibit 5.3. Syntax of command for deleting files and folders
ftpdelete <keywords: local, remote>, <keywords: file, folder>, <name string>; |
Exhibit 5.4. Examples for using the command for deleting files and folders
ftpdelete local, file, "file_1.txt"; #delete local file ftpdelete remote, folder, "tmp_folder"; #delete remote folder and all sub-folders recursively |