When you unload a loaded referenced object, it frees the memory but does not delete the reference.
lFileReference = FBFindObjectByFullName( "FileReference::NS" ) lFileReference.IsLoaded = False
lFileReference = FBFindObjectByFullName( "FileReference::NS" ) lFileReference.IsLoaded = True