FtpClient.DeleteFile Method
Delete a file on the remote server.
[Visual Basic]
Public Function DeleteFile( _
ByVal remoteFile As String _
) As Boolean
[C#]
public bool DeleteFile(
string remoteFile
);
Parameters
- remoteFile
- A string which specifies the name of the file on the remote server that is to be deleted. The file pathing and name
conventions must be that of the remote host.
Return Value
This method returns a boolean value. If the method succeeds, the return value is true. If the method
fails, the return value is false. To get extended error information, check the value of the
LastError property.
Remarks
The DeleteFile method deletes an existing file from the remote server. The user must have the appropriate
permission to delete the specified file.
See Also
FtpClient Class |
SocketTools Namespace