in dicom_util/src/main/java/com/google/cloud/healthcare/DicomWebClient.java [178:193]
public void delete(String path) throws IDicomWebClient.DicomWebException {
try {
HttpRequest httpRequest =
requestFactory.buildDeleteRequest(
new GenericUrl(serviceUrlPrefix + "/" + StringUtil.trim(path)));
httpRequest.execute();
} catch (HttpResponseException e) {
throw new DicomWebException(
String.format("delete: %d, %s", e.getStatusCode(), e.getStatusMessage()),
e,
e.getStatusCode(),
Status.ProcessingFailure);
} catch (IOException | IllegalArgumentException e) {
throw new IDicomWebClient.DicomWebException(e);
}
}