code: public static void deleteGeometryIndexExtension(GeoPackageCore geoPackage) {
  
  		GeometryIndexDao geometryIndexDao = geoPackage.getGeometryIndexDao();
  		TableIndexDao tableIndexDao = geoPackage.getTableIndexDao();
  		ExtensionsDao extensionsDao = geoPackage.getExtensionsDao();
  
  		try {
  			if (geometryIndexDao.isTableExists()) {
  				geoPackage.dropTable(geometryIndexDao.getTableName());
  			}
  			if (tableIndexDao.isTableExists()) {
  				geoPackage.dropTable(tableIndexDao.getTableName());
  			}
  			if (extensionsDao.isTableExists()) {
  				extensionsDao
  						.deleteByExtension(FeatureTableCoreIndex.EXTENSION_NAME);
  			}
  		} catch (SQLException e) {
  			throw new GeoPackageException(
  					"Failed to delete Table Index extension and tables. GeoPackage: "
  							+ geoPackage.getName(), e);
  		}
  
  	}
docs: Delete the Geometry Index extension including the extension entries and
  custom tables
  
  @param geoPackage
  GeoPackage
  @since 3.2.0