private void deleteCacheFromDBAndLogout(final String geocode) {
        CgeoTestUtils.removeCache(geocode);

        GCLogin.getInstance().logout();
        // Modify login data to avoid an automatic login again
        TestSettings.setLogin(new Credentials("c:geo", "c:geo"));
        Settings.setGCMemberStatus(GCMemberState.BASIC);
    }
Remove cache from DB and cache to ensure that the cache is not loaded from the database
main/src/androidTest/java/cgeo/geocaching/CgeoApplicationTest.java