#NEWLINE# def unlink( core_client , ui_config ) : #NEWLINE# #INDENT# account_dict = ui_config . get ( 'account' ) #NEWLINE# if account_dict : #NEWLINE# #INDENT# if ( 'clientID' in account_dict ) : #NEWLINE# #INDENT# account_dict [ 'clientID' ] = rc4 . decrypt ( account_dict [ 'clientID' ] , RC4_KEY ) #NEWLINE# #UNINDENT# if ( 'authKey' in account_dict ) : #NEWLINE# #INDENT# account_dict [ 'authKey' ] = rc4 . decrypt ( account_dict [ 'authKey' ] , RC4_KEY ) #NEWLINE# #UNINDENT# account = Account ( ** account_dict ) #NEWLINE# ui_config . unset ( 'account' ) #NEWLINE# ui_config . unset ( 'cloud_home' ) #NEWLINE# core_client . unlink ( account ) #NEWLINE# return True #NEWLINE# #UNINDENT# return False