public boolean deleteIndex ( ) { boolean deleted = false ; ExtensionsDao extensionsDao = geoPackage . getExtensionsDao ( ) ; TableIndexDao tableIndexDao = geoPackage . getTableIndexDao ( ) ; try { // Delete geometry indices and table index if ( tableIndexDao . isTableExists ( ) ) { deleted = tableIndexDao . deleteByIdCascade ( tableName ) > 0 ; } // Delete the extensions entry if ( extensionsDao . isTableExists ( ) ) { deleted = extensionsDao . deleteByExtension ( EXTENSION_NAME , tableName ) > 0 || deleted ; } } catch ( SQLException e ) { throw new GeoPackageException ( "Failed to delete Table Index. GeoPackage: " + geoPackage . getName ( ) + ", Table: " + tableName , e ) ; } return deleted ; }
Delete the feature table index