Deleting a Referenced Object
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:
- Unload the referenced object.
- Perform one of the following:
- Call the
NamespaceDelete
function.lFileReference = FBFindObjectByFullName( "FileReference::NS" ) lFileReference.IsLoaded = False FBSystem().Scene.NamespaceDelete( "NS" )
- Call the `FBDelete` function.
```
lFileReference = FBFindObjectByFullName( "FileReference::NS" )
lFileReference.IsLoaded = False
lFileReference.FBDelete()
```