private static int remove(final String whereClause, final String[] whereArgs) {
            database.delete(dbTableLogsOfflineImages, "logoffline_id in (select _id from " + dbTableLogsOffline + " where " + whereClause + ")", whereArgs);
            database.delete(dbTableLogsOfflineTrackables, "logoffline_id in (select _id from " + dbTableLogsOffline + " where " + whereClause + ")", whereArgs);
            return database.delete(dbTableLogsOffline, whereClause, whereArgs);
        }
if returned id is < 0 then there is no offline log for given geocode
main/src/main/java/cgeo/geocaching/storage/DataStore.java