try {
CacheStorage storage = new CacheStorage(getConf(), cacheBaseUri);
try {
boolean succeed;
if (RuntimeContext.get().canExecute(storage)) {
succeed = storage.deleteAll();
} else {
succeed = true;
}
return succeed ? FileProtocol.Kind.RESPONSE_DELETED : FileProtocol.Kind.RESPONSE_NOT_FOUND;
} finally {