Discuss this help topic in SecureBlackbox Forum

FTPS: Delete file or directory

To delete the directory, you can use TElSimpleFTPSClient.RemoveDir() method. This method causes the specified directory to be removed as a directory (if the path is absolute) or as a subdirectory of the current working directory (if the path is relative). This is a low-level method which sends RMD command.

To delete one file, use TElSimpleFTPSClient.RemoveFile() method.

You can use TElSimpleFTPSClient.RemoveFiles() method to recursively remove files and directories. The method allows to specify a path and a mask to select files to delete. Files are chosen by mask which can be a simple mask, set of masks or a regular expression (read more about file masks and regular expressions).

How To articles about client-side FTPS questions

Discuss this help topic in SecureBlackbox Forum