def removeReferenceEdits(self, editCommand=None, force=False):

        if self.isLoaded():
            self.unload()

        kwargs = {}
        if editCommand:
            kwargs['editCommand'] = editCommand
        cmds.file(cleanReference=self.refNode, **kwargs)
Remove edits from the reference.
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/system.py/FileReference.removeReferenceEdits