public static int getAllCachesCount() {
        return withAccessLock(() -> (int) PreparedStatement.COUNT_ALL_CACHES.simpleQueryForLong());
    }
Drop caches from the tables they are stored into, as well as the cache files

@param geocodes list of geocodes to drop from cache
main/src/main/java/cgeo/geocaching/storage/DataStore.java