Xceed FTP Library Documentation
DeleteFile method
XceedFtp control reference > Methods > DeleteFile method

Description

Deletes a file on the FTP server.

If the sFilename parameter specifies a filename without a path, the file will be deleted from the FTP server's current working folder . If a path is specified, it can be relative to the current folder, or absolute to the remote system.

This method can only be used when the CurrentState property's value is fcsConnected.

Parameters
 

Parameter Description
sFilename  The filename to delete on the remote server. Can be specified with or without a path.
 
Declaration  
HRESULT DeleteFile( [in] BSTR sFilename )

Applicable properties

None

Events triggered

LoggingCommandLine, ProcessCompleted