You can delete a referenced object along with all the referenced items within the referenced object. However, this action cannot be reverted.
To delete a referenced object, perform the following steps:
lFileReference = FBFindObjectByFullName( "FileReference::NS" ) lFileReference.IsLoaded = False FBSystem().Scene.NamespaceDelete( “NS” )
lFileReference = FBFindObjectByFullName( "FileReference::NS" ) lFileReference.IsLoaded = False lFileReference.FBDelete()