@WorkerThread
    static LogResult deleteLogTaskLogic(final Geocache cache, final LogEntry logEntry, final String reason, final Consumer<String> progress) {

        progress.accept(LocalizationUtils.getString(R.string.log_posting_deletelog));

        final LogResult result = cache.getLoggingManager().deleteLog(logEntry, reason);
        if (!result.isOk()) {
            return result;
        }
        progress.accept(LocalizationUtils.getString(R.string.log_posting_save_internal));
        changeLogsInDatabase(cache, logs -> {
            final Iterator<LogEntry> it = logs.listIterator();
            while (it.hasNext()) {
                final LogEntry log = it.next();
                if (Objects.requireNonNull(logEntry.serviceLogId).equals(log.serviceLogId)) {
                    it.remove();
                    break;
                }
            }
        });
        cache.notifyChange();
        return result;
    }
get title for a log image in the list
main/src/main/java/cgeo/geocaching/log/LogUtils.java