In insects, cleaning (grooming) of tarsal attachment devices is essential for maintaining their adhesive ability, necessary for walking on a complex terrain of plant surfaces. How insects obtain information on the degree of contamination of their feet has remained, until recently, unclear. We carried out friction force measurements on walking beetles Gastrophysa viridula (Coleoptera, Chrysomelidae) and counted grooming occurrence on stiff polymer substrata with different degrees of nanoroughness (root mean square: 28 -288 nm). Since nanoscopically, rough surfaces strongly reduced friction and adhesion without contaminating feet, we were able to demonstrate, for the first time to our knowledge, that friction force between tarsal attachment pads and the substrate provides an insect with information on the degree of contamination of its attachment structures. We have shown that foot grooming occurrence correlates not only with the degree of contamination but also with the decrease of friction force. This result indicates that insects obtain information about the degree of contamination, not statically but rather dynamically and, presumably, use mechanoreceptors monitoring either tensile/compressive forces in the cuticle or tensile forces between leg segments.