def delete(self, args):
        parser = OptionParser(usage="machine delete <options>")
        parser.add_option("-n", "--name",
                help="the name of the physical machine",
                action="store", dest="name")
        parser.add_option("-i", "--host",
                help="the ip of the physical machine",
                action="store", dest="host")
        (options, args) = parser.parse_args(args)
        name = options.name
        host = options.host

        if not name and not host:
            parser.print_help()
            return

        try:
            admin = self._context.getAdministrationService()
            if name:
                machine = admin.findMachine(MachinePredicates.name(name))
            else:
                machine = admin.findMachine(MachinePredicates.ip(host))
            if not machine:
                print "Machine not found"
                return
            name = machine.getName()
            machine.delete()
            log.debug("Machine %s deleted succesfully" % name)

        except (AbiquoException, AuthorizationException), ex:
            print "Error %s" % ex.getMessage()
a.__equ__(b) <==> a == b
dataset/ETHPy150Open nacx/kahuna/kahuna/plugins/machine.py/MachinePlugin.delete--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arrays.py/Array.__eq__