public void deleteLog(final Geocache cache, final LogEntry entry) {
        if (!LogUtils.canDeleteLog(cache, entry)) {
            //should never happen (would be a programming error), thus not translating message
            ActivityMixin.showToast(activity, "Can't delete log");
            return;
        }
        final SimpleDialog dialog = SimpleDialog.ofContext(activity)
            .setTitle(TextParam.id(R.string.cache_log_menu_delete))
            .setMessage(TextParam.id(R.string.log_delete_confirm,
                entry.logType.getL10n(), entry.author, Formatter.formatShortDateVerbally(entry.date)))
            .setButtons(SimpleDialog.ButtonTextSet.YES_NO);
        if (entry.isOwn()) {
            dialog.confirm(() -> logDeleteTask.start(new ImmutableTriple<>(cache, entry, null)));
        } else {
            dialog.input(new SimpleDialog.InputOptions().setLabel("Reason"), reasonText -> logDeleteTask.start(new ImmutableTriple<>(cache, entry, reasonText)));
        }
    }
delete a log on the geocaching platform
main/src/main/java/cgeo/geocaching/log/LogActivityHelper.java