#NEWLINE# @ expose . expose ( None , types . uuid_or_name , status_code = http_client . NO_CONTENT ) #NEWLINE# def delete( self , node_ident ) : #NEWLINE# #INDENT# 'Delete a node.\n\n        :param node_ident: UUID or logical name of a node.\n        ' #NEWLINE# if rpc_node . from_chassis : #NEWLINE# #INDENT# raise exception . OperationNotPermitted #NEWLINE# #UNINDENT# rpc_node = api_utils . get_rpc_node ( node_ident ) #NEWLINE# try : #NEWLINE# #INDENT# topic = pecan . request . rpcapi . get_topic_for ( rpc_node ) #NEWLINE# #UNINDENT# except exception . NoValidHost as e : #NEWLINE# #INDENT# e . code = http_client . BAD_REQUEST #NEWLINE# raise e #NEWLINE# #UNINDENT# pecan . request . rpcapi . destroy_node ( pecan . request . context , rpc_node . uuid , topic )