private void deleteAll(final String uri) {
        Preconditions.checkArgument(uri.endsWith("/batch"), "uri[{}] must be end with '/batch'", uri);

        String listAllResourcesUrl = uri.replace("/batch", "") + "/list/search";
        List<String> ids = list(listAllResourcesUrl, QUERY_ALL, FAKE_VALUE_TYPE, FakeResourceDTO::getId);

        delete(uri, ids);
        List<FakeResourceDTO> result = list(listAllResourcesUrl, QUERY_ALL, FAKE_VALUE_TYPE, v -> v);
        Assertions.assertEquals(0, result.size(), "resource list is empty after deleted");
    }
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