'Deletes an existing agent build.'

@args('--os', metavar='<os>', help='os')
@args('--architecture', dest='architecture', metavar='<architecture>', help='architecture')
@args('--hypervisor', metavar='<hypervisor>', help='hypervisor(default:    xen)')
def delete(self, os, architecture, hypervisor='xen'):

    ctxt = context.get_admin_context()
    agent_build_ref = db.agent_build_get_by_triple(ctxt, hypervisor, os, architecture)
    db.agent_build_destroy(ctxt, agent_build_ref['id'])
