code: def remove_template(self, tpl):
          
          try:
              del self.templates[tpl.uuid]
          except KeyError:  # pragma: no cover, simple protection
              pass
          self.unindex_template(tpl)
docs: Removes and un-index a template from the `templates` container.
  
          :param tpl: The template to remove
          :type tpl: alignak.objects.item.Item
          :return: None