code: public int removeShapesWithExclusions(String database, Set<GoogleMapShapeType> excludedTypes) {
  
          int count = 0;
  
          Map<String, Map<Long, FeatureShape>> tables = getTables(database);
  
          if (tables != null) {
  
              Iterator<String> iterator = tables.keySet().iterator();
              while (iterator.hasNext()) {
                  String table = iterator.next();
  
                  count += removeShapesWithExclusions(database, table, excludedTypes);
  
                  if (getFeatureIdsCount(database, table) <= 0) {
                      iterator.remove();
                  }
              }
  
          }
  
          return count;
      }
docs: Remove all map shapes in the database from the map, excluding shapes with the excluded types
  
  @param database      GeoPackage database
  @param excludedTypes Google Map Shape Types to exclude from map removal
  @return count of removed features
  @since 3.2.0