public boolean delete ( String database ) { GeoPackageMetadata metadata = get ( database ) ; if ( metadata != null ) { TableMetadataDataSource tableDs = new TableMetadataDataSource ( db ) ; tableDs . delete ( metadata . getId ( ) ) ; } String whereClause = GeoPackageMetadata . COLUMN_NAME + " = ?" ; String [ ] whereArgs = new String [ ] { database } ; int deleteCount = db . delete ( GeoPackageMetadata . TABLE_NAME , whereClause , whereArgs ) ; return deleteCount > 0 ; }
Delete the database