#NEWLINE# @ classmethod #NEWLINE# @ usage ( 'remove CONNECTION' ) #NEWLINE# def remove( cls , connection ) : #NEWLINE# #INDENT# 'remove the config file for CONNECTION' #NEWLINE# filename = cls . _get_config_filename ( connection ) #NEWLINE# if os . path . exists ( filename ) : #NEWLINE# #INDENT# if cls . _is_default ( connection ) : #NEWLINE# #INDENT# os . remove ( cls . _default_symlink ) #NEWLINE# #UNINDENT# os . remove ( filename ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cls . _no_config_file_error ( cls )