 | FTPUtilitiesDeleteFile Method |
Delete a files via FTP
Namespace: ProFTPNetLibraryAssembly: ClientFTPNetLibrary (in ClientFTPNetLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static bool DeleteFile(
FTPUtilitiesFTPConfiguration ftpConfig,
string relativePath,
string filename
)
Public Shared Function DeleteFile (
ftpConfig As FTPUtilitiesFTPConfiguration,
relativePath As String,
filename As String
) As Boolean
Parameters
- ftpConfig
- Type: ProFTPNetLibraryFTPUtilitiesFTPConfiguration
FTP configuration structure - relativePath
- Type: SystemString
Directory relative path (es: "mydirectory"), do not add \ or / - filename
- Type: SystemString
Name of the file to delete
Return Value
Type:
BooleanTrue if deleted successfully; false otherwise
See Also