How to remove unused labels

For others that see this - this post is related to this one:

The post above from @Alberto is continued for discussion here: