def delete(node_name):
    """ Delete a specific node """
    result = {}
    node = nago.core.get_node(node_name)
    if not node:
        result['status'] = 'error'
        result['message'] = "node not found."
    else:
        node.delete()
        result['status'] = 'success'
        result['message'] = 'node deleted.'
    return result
def delete ( node_name ) : result = { } node = nago . core . get_node ( node_name ) if not node : result [ 'status' ] = 'error' result [ 'message' ] = "node not found." else : node . delete ( ) result [ 'status' ] = 'success' result [ 'message' ] = 'node deleted.' return result
Delete a specific node