@Override
    public boolean deleteBySelector(ApiClient apiClient, String selector, boolean label, String namespace, boolean wait)
            throws HyscaleException {
        try {
            List<V1ConfigMap> configMapsList = getBySelector(apiClient, selector, label, namespace);
            if (configMapsList == null || configMapsList.isEmpty()) {
                return false;
            }
            for (V1ConfigMap configMap : configMapsList) {
                delete(apiClient, configMap.getMetadata().getName(), namespace, wait);
            }
        } catch (HyscaleException e) {
            if (DeployerErrorCodes.RESOURCE_NOT_FOUND.equals(e.getHyscaleError())) {
                LOGGER.error("Error while deleting ConfigMap for selector {} in namespace {}, error {}", selector,
                        namespace, e.toString());
                return false;
            }
            throw e;
        }
        return true;
    }
Fetch existing resource, create diff, call patch api with diff
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/handler/impl/V1ConfigMapHandler.java