private void delete(final String uri, final List<String> ids) {
        if (ids.isEmpty()) {
            log.info("delete resources, effected size: 0, cause by: there is not resources in ShenYuAdmin");
            return;
        }
        Map<String, Object> body = new HashMap<>();
        body.put("ids", ids);
        body.put("namespaceId", SYS_DEFAULT_NAMESPACE_NAMESPACE_ID);
        HttpEntity<Map<String, Object>> entity = new HttpEntity<>(body, basicAuth);
        ResponseEntity<ShenYuResult> response = template.exchange(baseURL + uri, HttpMethod.DELETE, entity, ShenYuResult.class);
        ShenYuResult rst = assertAndGet(response, "delete success");
        Integer deleted = Assertions.assertDoesNotThrow(() -> rst.toObject(Integer.class), "checking to cast object");
        Assertions.assertEquals(ids.size(), deleted, "checking deleted records");

        log.info("delete resources, effected size: {}, effected rows: {}", ids.size(), ids);
    }
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