private void removeData(final String[] pathParts, final String source) {
        String key = pathParts[pathParts.length - 1];
        String[] parentPathArray = Arrays.copyOfRange(pathParts, 0, pathParts.length - 1);
        if (ArrayUtils.isEmpty(parentPathArray)) {
            return;
        }
        String parentPath = String.join("/", parentPathArray);
        ShenyuTrieNode parentNode = this.getNode(parentPath, source);
        if (Objects.isNull(parentNode)) {
            return;
        }
        Optional.ofNullable(parentNode.getChildren()).ifPresent(cache -> cache.remove(key));
    }
remove rule data.

@param currentNode current node
@param pathParts path parts
@param ruleData rule data
@param collection rule data list
shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/trie/ShenyuTrie.java