def delete_instance(self, instance):
        """delete an instance from this event"""
        assert self.recurring
        delete_instance(self._vevents['PROTO'], instance)

        # in case the instance we want to delete is specified as a RECURRENCE-ID
        # event, we should delete that as well
        to_pop = list()
        for key in self._vevents:
            if key == 'PROTO':
                continue
            try:
                if self._vevents[key].get('RECURRENCE-ID').dt == instance:
                    to_pop.append(key)
            except __HOLE__:  # localized/floating datetime mismatch
                continue
        for key in to_pop:
            self._vevents.pop(key)
dataset/ETHPy150Open pimutils/khal/khal/khalendar/event.py/Event.delete_instance