This method deletes an existing file from the FTP server. (It includes connecting to and disconnecting from the server.)
[Visual Basic] [ Boolean
=
]imagekitcontrolname.File.FTPDeleteFile(ServerName As
String, ProxyName As String, PortNo As Integer, PassiveMode As
Boolean, RemoteFilePath As String, UserName As String, Password As
String)
[Visual C++] [
BOOL =
]imagekitcontrolname.GetFile().FTPDeleteFile(LPCTSTR
ServerName, LPCTSTR ProxyName, short PortNo, BOOL PassiveMode,
LPCTSTR RemoteFilePath, LPCTSTR UserName, LPCTSTR Password)
Parameters
Name | Explanation |
---|---|
ServerName | The name of the FTP server or IPAddress |
ProxyName | The Proxy Server IP Address |
PortNo | Port Number (default is 21) |
PassiveMode | Enables passive mode connectivity: False(0) = Active Mode Connection; True(nonzero) = Passive Mode Connection |
RemoteFilePath | The name and path of the file to be deleted |
UserName | The username needed to access the FTP server |
Password | The password needed to access the FTP server |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The FTPDeleteFile method deletes an existing file from the FTP server. (It includes connecting to and disconnecting from the server.) This method can only be executed from the client computer. It does not operate on the server.
When not using a proxy server set an empty string, set to NULL(Visual C++) or vbNullString(Visual Basic)