BuildServerUploaderConsole.Sftp.SftpManager.DeleteRemoteFile C# (CSharp) Метод

DeleteRemoteFile() публичный статический Метод

public static DeleteRemoteFile ( string host, string file, string username, string password ) : void
host string
file string
username string
password string
Результат void
        public static void DeleteRemoteFile(string host, string file, string username, string password)
        {
            using (var sftp = new SftpClient(host, username, password))
            {
                sftp.Connect();

                sftp.Delete(file);

                sftp.Disconnect();

            }
        }