diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/gcat/GCatAPIClient.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/gcat/GCatAPIClient.java index e003b1866..e054180ae 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/gcat/GCatAPIClient.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/gcat/GCatAPIClient.java @@ -118,8 +118,7 @@ public class GCatAPIClient { } } - public boolean purge(final String objidentifier) throws IOException, URISyntaxException { - String resCatName = getCatalogueNameFrom(objidentifier); + public boolean purge(final String resCatName) throws IOException, URISyntaxException { try (CloseableHttpClient client = HttpClients.createDefault()) { URIBuilder builder = new URIBuilder(getGcatBaseURL() + itemPath + "/" + resCatName) .addParameter("purge", "true"); @@ -158,10 +157,6 @@ public class GCatAPIClient { return deleted; } - protected String getCatalogueNameFrom(final String objIdentifier) { - return objIdentifier.replaceAll(":", "-"); - } - public String getGcatBaseURL() { return gcatBaseURL; }