code: def remove_event_type(self, name):
          
  
          if name not in self.event_types:
              lg.info('Event type ' + name + ' was not found.')
  
          events = self.rater.find('events')
  
          # list is necessary so that it does not remove in place
          for e in list(events):
              if e.get('type') == name:
                  events.remove(e)
  
          self.save()
docs: Remove event type based on name.