public void deleteAllRules(final String selectorId) {
        List<String> ids = searchRules(null, selectorId).getList().stream().map(RuleDTO::getId).collect(Collectors.toList());
        deleteRules(ids.toArray(new String[]{}));
    }
Delete all rules under given id of selector.

@param selectorId ID of selector
shenyu-e2e/shenyu-e2e-client/src/main/java/org/apache/shenyu/e2e/client/admin/AdminClient.java