'Locally deletes tags that don\'t match TAG_MATCHER.
This is so that gradle will use the latest resolved semantic version from
our tag pattern when it builds the package.'

def delete_unwanted_tags(self):

    print 'Deleting    {0}    unwanted    git    tags    locally    from    {1}'.format(len(self.__tags_to_delete), self.path)
    for bad_hash_tag in self.__tags_to_delete:
        run_quick('git    -C    {path}    tag    -d    {tag}'.format(path=self.path, tag=bad_hash_tag.tag), echo=False)
