def delall(self, key):
        """Delete all tags of a given kind; see getall."""
        if key in self:
            del(self[key])
        else:
            key = key + ":"
            for k in self.keys():
                if k.startswith(key):
                    del(self[k])
Delete all tags of a given kind; see getall.