#NEWLINE# def delete( self , id ) : #NEWLINE# #INDENT# 'Delete a resource.' #NEWLINE# db_obj = objects . registry . Assembly . get_by_uuid ( self . context , self ) #NEWLINE# conductor_api . API ( context = self . context ) . update_assembly ( db_obj . id , { #NEWLINE# #INDENT# 'status' : ASSEMBLY_STATES . DELETING , #NEWLINE# #UNINDENT# } ) #NEWLINE# deploy_api . API ( context = self . context ) . destroy_assembly ( assem_id = db_obj . id )