code: def do_rmfit(self, arg):
          
          if arg in self.curargs["fits"]:
              del self.curargs["fits"][arg]        
          #We also need to remove the variable entry if it exists.
          if "timing" in arg:
              fitvar = "{}|fit".format(arg)
          else:
              fitvar = "{}.fit".format(arg)
          if fitvar in self.curargs["dependents"]:
              self.curargs["dependents"].remove(fitvar)
docs: Removes a fit function from a variable. See 'fit'.