'Destroy a node.
:param  node: Node object to destroy
:type   node: :class:`Node`
:return:  True if successful
:rtype:   ``bool``'

def destroy_node(self, node):

    vm = self._node_info(node.id)
    if (vm['state'] == 'running'):
        op_stop = self.connection.request('hosting.vm.stop', int(node.id))
        if (not self._wait_operation(op_stop.object['id'])):
            raise GandiException(1010, 'vm.stop    failed')
    op = self.connection.request('hosting.vm.delete', int(node.id))
    if self._wait_operation(op.object['id']):
        return True
    return False
