This method deletes an existing file from the FTP server
Parameters
Name | Explanation |
---|---|
RemoteFilePath | The name and path of the file to be deleted |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The FTPDeleteFileEx method deletes an existing file from the FTP server. This method can only be used after the FTPConnect method has connected to the FTP server. This method can only be executed from the client computer. It does not operate on the server.
Example Code:
Visual Basic
If ImageKit1.File.FTPConnect("www.newtone.co.jp", "", 21, True,
"User", "Password") = False Then Exit Sub
Call ImageKit1.File.FTPDeleteFileEx("images/001.jpg")
Call ImageKit1.File.FTPDisconnect()
Visual C++
if (ImageKit1.GetFile().FTPConnect("www.newtone.co.jp", "", 21,
TRUE, "User", "Password") == FALSE) return;
ImageKit1.GetFile().FTPDeleteFileEx("images/001.jpg");
ImageKit1.GetFile().FTPDisconnect();