def deleteImportConfigFolder(self): try: sshClient = ConnectSSH(host, username, password) sshClient.ssh() stdout = sshClient.enterCommand('rm -rf /mnt/ixload-share/Results/17-12-20-089862') print(stdout) except paramiko.ssh_exception.NoValidConnectionsError as errMsg: print('\nSSH connection failed: {}'.format(errMsg))