public Attribute deleteGroupAttribute ( Group g , String attName ) { if ( ! defineMode ) throw new UnsupportedOperationException ( "not in define mode" ) ; if ( g == null ) g = ncfile . getRootGroup ( ) ; Attribute att = g . findAttribute ( attName ) ; if ( null == att ) return null ; g . remove ( att ) ; return att ; }
Delete a group Attribute . Must be in define mode .