geopackage-sdk/src/main/java/mil/nga/geopackage/features/index/FeatureIndexManager.java
public boolean deleteIndex(FeatureIndexType type, long geomId) {
        if (type == null) {
            throw new GeoPackageException("FeatureIndexType is required to delete index");
        }
        boolean deleted = false;
        switch (type) {
            case GEOPACKAGE:
                deleted = featureTableIndex.deleteIndex(geomId) > 0;
                break;
            case METADATA:
                deleted = featureIndexer.deleteIndex(geomId);
                break;
            case RTREE:
                // Updated by triggers, ignore for RTree
                deleted = true;
                break;
            default:
                throw new GeoPackageException("Unsupported FeatureIndexType: " + type);
        }
        return deleted;
    }
public boolean deleteIndex(FeatureIndexType type, long geomId) {
        if (type == null) {
            throw new GeoPackageException("FeatureIndexType is required to delete index");
        }
        boolean deleted = false;
        switch (type) {
            case GEOPACKAGE:
                deleted = featureTableIndex.deleteIndex(geomId) > 0;
                break;
            case METADATA:
                deleted = featureIndexer.deleteIndex(geomId);
                break;
            case RTREE:
                // Updated by triggers, ignore for RTree
                deleted = true;
                break;
            default:
                throw new GeoPackageException("Unsupported FeatureIndexType: " + type);
        }
        return deleted;
    }
public boolean deleteIndex ( FeatureIndexType type , long geomId ) { if ( type == null ) { throw new GeoPackageException ( "FeatureIndexType is required to delete index" ) ; } boolean deleted = false ; switch ( type ) { case GEOPACKAGE : deleted = featureTableIndex . deleteIndex ( geomId ) > 0 ; break ; case METADATA : deleted = featureIndexer . deleteIndex ( geomId ) ; break ; case RTREE : // Updated by triggers, ignore for RTree deleted = true ; break ; default : throw new GeoPackageException ( "Unsupported FeatureIndexType: " + type ) ; } return deleted ; }
Delete the feature index for the geometry id

@param type   feature index type
@param geomId geometry id
@return true if deleted
Delete the feature index for the geometry id