def METHOD_NAME(network):
    netName = LIBVIRT_NET_PREFIX + network
    conn = libvirtconnection.get()
    net = _netlookup_by_name(conn, netName)
    if net:
        if net.isActive():
            net.destroy()
        if net.isPersistent():
            net.undefine()