code: def removeidfobject(self, idfobject):
          
          key = idfobject.key.upper()
          self.idfobjects[key].remove(idfobject)
docs: Remove an IDF object from the IDF.
  
          Parameters
          ----------
          idfobject : EpBunch object
              The IDF object to remove.