Added ref deletion to RefUpdate