How to remove unused tags from Files app?

We have unused tags in Nextcloud (i.e. tags that are still listed when searching but have no files attached to them).

NoTags

How can I remove these from the system?

I’ve tried running sudo -u www-data php /var/www/nextcloud/occ files:scan --all but that did not clear things up.

Any ideas? We’re running 21.0.3.

Finally found it.

Tags can be managed/deleted in Settings → Administration → Basic Settings → Collaborative Tags

Well, I run into a similiar problem with nc 22.2.6. When I delete a tag the tag is still visible in the details of a file. how can I delete the tag there?