public static LogResult deleteLog(final String logId, final String reasonText) {

        //{"reasonText":"Deleting test log"}

        //1.) Call log view page and get a valid CSRF Token
        final String csrfToken = getCsrfToken();
        if (csrfToken == null) {
            return generateLogError("DeleteLog: unable to extract CSRF Token");
        }

        String reason = reasonText;
        if (StringUtils.isBlank(reason)) {
            reason = LocalizationUtils.getString(R.string.cache_log_delete_reason_default);
        }
        final GCWebLogDelete deleteBody = new GCWebLogDelete();
        deleteBody.reasonText = reason;

        //2,) Send a DELETE Request (which is actually a POST)
        try (HttpResponse response = websiteReq().uri("/api/live/v1/logs/geocacheLog/delete/" + logId)
            .method(HttpRequest.Method.POST)
            .headers(HTML_HEADER_CSRF_TOKEN, csrfToken)
            .bodyJson(reasonText == null ? null : deleteBody)
            .request().blockingGet()) {

            if (!response.isSuccessful()) {
                return generateLogError("DeleteLog: Problem deleting, response is: " + response);
            }

            return LogResult.ok(logId);
        }

    }
Provides methods to handle all aspects of creating, editing and deleting Log entries for GC.com (both caches and trackables)
main/src/main/java/cgeo/geocaching/connector/gc/GCLogAPI.java