Restoring a Referenced Object
If the changes made to items within a referenced object are not acceptable, you can undo the changes and restore the referenced object back to its load state. However, this action cannot be reverted.
lFileReference = FBFindObjectByFullName( "FileReference::NS" )
lFileReference.RevertRefEdit()