<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_template(self, tpl):
 """ Removes and un-index a template from the `templates` container. :param tpl: The template to remove :type tpl: alignak.objects.item.Item :return: None """

        try:
            del self.templates[tpl.uuid]
        except KeyError:  # pragma: no cover, simple protection
            pass
        self.unindex_template(tpl)