@Override
    public void unWatchInstances(final String key) {
        try {
            EventListener nacosListener = listenerMap.get(key);
            if (Objects.nonNull(nacosListener)) {
                namingService.unsubscribe(key, groupName, nacosListener);
                listenerMap.remove(key);
                LOGGER.info("nacos registry unwatch key: {}", key);
            }
        } catch (NacosException e) {
            LOGGER.error("nacos registry error removing nacos service listener...", e);
            throw new ShenyuException(e);
        }
    }
The type Nacos instance register repository.
shenyu-registry/shenyu-registry-nacos/src/main/java/org/apache/shenyu/registry/nacos/NacosInstanceRegisterRepository.java