Doesn't the 'hide' command also exist in Oblivion as it does in Skyrim? As for deleting refs in Morrowind and to my knowledge there are two options to do that which is something like this. In the saves tab in Wrye Mash the user can select any gamesave then click on repair allIn the mods tab in Wrye Mash the user can select an esp then click on repair refs or renumber refsShould the user get a message about bad refs then all bad refs needs to be deleted. However, I know the user can load a gamesave into the Enchanted Editor (EE) and make the changes then save it. Anyway, newer TES games are using FormID, but I'm not entirely sure if Oblivion has the BaseID record or not while Skyrim has the BaseID record (Lydia). As you can see Skyrim uses both RefID and BaseID, which are unique for the same, in this case, NPC. @OP: Maybe changing the script to search for BaseID record(s) instead of focusing on RefID record(s) and doing that might help.