How to quickly have IMatch find and delete all categories/keywords in the database for which there aren't any files?
For keywords, set in the properties the entry "keep empty categories" to off.
It's all documented: Keep Empty Categories (https://www.photools.com/help/imatch/cat_keywords.htm?dl=h-14)