I usually use peanutbutter, but, last time it happened, I was out of peanutbutter and tried olive oil, which also worked well. I wouldn't use WD40, as it might be toxic if the dog licked at it. Luckily, we don't get gummed all that often. Tracy