@utils.arg('id', metavar='<NODE>', nargs='+',
           help=_('Name or ID of node(s) to delete.'))
def do_node_delete(service, args):
    show_deprecated('senlin node-delete', 'openstack cluster node delete')
    failure_count = 0

    for nid in args.id:
        try:
            service.delete_node(nid, False)
        except Exception as ex:
            failure_count += 1
            print(ex)
    if failure_count > 0:
        msg = _('Failed to delete some of the specified nodes.')
        raise exc.CommandError(msg)
    print('Request accepted')
Delete the node(s).
dataset/ETHPy150Open openstack/python-senlinclient/senlinclient/v1/shell.py/do_node_delete