in src/main/java/org/apache/sling/hapi/client/impl/AbstractHtmlClientImpl.java [118:129]
public <T extends Document> T delete(String url) throws ClientException {
try {
URI absoluteUri = absoluteUri(url);
LOG.info("DELETE " + absoluteUri);
HttpResponse response = this.execute(new HttpDelete(absoluteUri));
return newDocument(response.getEntity().toString());
} catch (URISyntaxException e) {
throw new ClientException("Invalid post url " + url, e);
} catch (Exception e) {
throw new ClientException("Could not execute DELETE request", e);
}
}