

def destroy_node(self, node):
    '\n        Deletes a node, node must be stopped before deletion\n\n\n        :keyword node: The node to delete\n        :type    node: :class:`Node`\n\n        :rtype: ``bool``\n        '
    request_elm = ET.Element('deleteServer', {
        'xmlns': TYPES_URN,
        'id': node.id,
    })
    body = self.connection.request_with_orgId_api_2('server/deleteServer', method='POST', data=ET.tostring(request_elm)).object
    response_code = findtext(body, 'responseCode', TYPES_URN)
    return (response_code in ['IN_PROGRESS', 'OK'])

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.destroy_node/original