Remove references to a tag when it is deleted