A suitable OBD2 diagnostic tool will be able to erase the memory of the key fob, if it is connected to the vehicle. Some general scanner tools are unable to do this, and you typically need a tool specific to your car model if you want to do this.