def METHOD_NAME(self, deltags: str, tags: str) -> str:
    "Delete tags if they exist."
    def wildcard(pat: str, repl: str) -> Match:
        pat = re.escape(pat).replace("\\*", ".*")
        return re.match(f"^{pat}$", repl, re.IGNORECASE)
    current_tags = self.split(tags)
    for del_tag in self.split(deltags):
        # find tags, ignoring case
        remove = []
        for cur_tag in current_tags:
            if (del_tag.lower() == cur_tag.lower()) or wildcard(del_tag, cur_tag):
                remove.append(cur_tag)
        # remove them
        for rem in remove:
            current_tags.remove(rem)
    return self.join(current_tags)