decorative banner

Previous | Next               Table Of Contents > 4 File system commands > 4.2 Deleting files and folders

4.2 Deleting files and folders


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.

The syntax is

ftpdelete <keywords: local, remote>, <keywords: file, folder>, <name string>;

Some examples are

ftpdelete local, file, "file_1.txt"; #delete local file

ftpdelete remote, folder, "tmp_folder"; #delete remote folder and all sub-folders recursively


Previous | Next