geopackage-sdk/src/main/java/mil/nga/geopackage/features/index/FeatureIndexManager.java
public boolean retainIndex(FeatureIndexType type) {
        List<FeatureIndexType> retain = new ArrayList<FeatureIndexType>();
        retain.add(type);
        return retainIndex(retain);
    }
public boolean retainIndex(FeatureIndexType type) {
        List<FeatureIndexType> retain = new ArrayList<FeatureIndexType>();
        retain.add(type);
        return retainIndex(retain);
    }
public boolean retainIndex ( FeatureIndexType type ) { List < FeatureIndexType > retain = new ArrayList < FeatureIndexType > ( ) ; retain . add ( type ) ; return retainIndex ( retain ) ; }
Retain the feature index from the index types and delete the others

@param type feature index type to retain
@return true if deleted from any type
@since 3.1.0
Retain the feature index from the index types and delete the others