Xceed FTP Library Documentation
XceedFtp control reference / Methods / RemoveFolder method
In This Topic
    RemoveFolder method
    In This Topic

    Description

    Removes (deletes) a folder from the FTP server.

    The remote folder to remove must be specified by the sFolder parameter. If the sFolder parameter specifies a folder name without a path, the folder 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 it can be an absolute path on the remote system.

    If the specified folder is not empty, some FTP servers may refuse to remove the folder.

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

    Parameters 

    Parameter Description
    sFolder  The remote folder to remove

     

    Declaration  
    HRESULT RemoveFolder( [in] BSTR sFolder )

    Applicable properties

    None

    Events triggered

    LoggingCommandLine, ProcessCompleted