private static void removeCache(final String geocode, final boolean completely) {
        final EnumSet<RemoveFlag> flags = EnumSet.copyOf(LoadFlags.REMOVE_ALL);
        if (completely) {
            flags.add(RemoveFlag.OWN_WAYPOINTS_ONLY_FOR_TESTING);
        }
        DataStore.removeCache(geocode, flags);
    }
remove cache from database and file system
main/src/androidTest/java/cgeo/geocaching/test/CgeoTestUtils.java