@@ -374,6 +374,16 @@ def add_named_object(self, name: 'types.QualifiedName', type: 'types.Type') -> N
374374 raise ValueError ("type must be a Type" )
375375 core .BNAddTypeLibraryNamedObject (self .handle , name ._to_core_struct (), type .handle )
376376
377+ def remove_named_object (self , name : 'types.QualifiedName' ) -> None :
378+ """
379+ `remove_named_object` removes a named object from the type library's object store.
380+ This does not remove any types that are referenced by the object, only the object itself.
381+
382+ :param QualifiedName name:
383+ :rtype: None
384+ """
385+ core .BNRemoveTypeLibraryNamedObject (self .handle , name ._to_core_struct ())
386+
377387 def add_named_type (self , name : 'types.QualifiedNameType' , type : 'types.Type' ) -> None :
378388 """
379389 `add_named_type` directly inserts a named object into the type library's object store.
@@ -395,6 +405,13 @@ def add_named_type(self, name: 'types.QualifiedNameType', type: 'types.Type') ->
395405 raise ValueError ("parameter type must be a Type" )
396406 core .BNAddTypeLibraryNamedType (self .handle , name ._to_core_struct (), type .handle )
397407
408+ def remove_named_type (self , name : 'types.QualifiedName' ) -> None :
409+ """
410+ `remove_named_type` removes a named type from the type library's type store.
411+ This does not remove any objects that reference the type, only the type itself.
412+ """
413+ core .BNRemoveTypeLibraryNamedType (self .handle , name ._to_core_struct ())
414+
398415 def add_type_source (self , name : types .QualifiedName , source : str ) -> None :
399416 """
400417 Manually flag NamedTypeReferences to the given QualifiedName as originating from another source
0 commit comments