It worked for me. I found out about it years ago. The Hosta forums were buzzing about coffee grinds. The info I read was it had to be un-used coffee because if you brew the coffee it takes out most of the caffine. I traveled a lot back then and coffee was in the rooms so I would collect the free coffee and sprinkle it in my hosta garden. I had a horrible problem with slugs. Leaves were gone I thought it was rabbits.
I sprinkle it in the gardens in the spring before they leaf out and I have not had holes or half leaf eaten since I started using coffee.
I know some said it did not work but they were using the free used coffee grinds from Starbucks but what I read was it had to be unused grinds and that is what I am using.