I find inset-forall a useful LFUN and using it would have been the answer to several questions I've seen if those insets had layoutName methods. (Most of those questions have to do with removing all insets of a certain type.)
Further motivation is that I'm guessing layoutName could be useful in other places of LyX. Right now it is only used in a few diagnostic messages. I would like to propose that a layoutName method be added to all current insets (I volunteer to do this work) and that it be required that future insets define this method. Of course this is post-2.1 stuff. Any comments? Scott