if (!isStarted())
throw new IllegalStateException("Content repository is not connected");
// Is this a new request or a scheduled asynchronous execution?
if (!(CurrentOperation.get() instanceof DeleteOperation)) {
DeleteOperation deleteOperation = deleteAsynchronously(uri, allRevisions);
if (deleteOperation == null)
return true;
return deleteOperation.get();
}
// Check if resource is in temporary cache already by another operation
if (processor.isProcessing(uri)) {
logger.debug("Resource '{}' is being processed, removing anyway", uri);