Try this :

You might be wondering how to recycle those coffee grounds before throwing them into the garbage. Don’t throw coffee grounds or leavings right away.

They can actually be reused as an effective dog repellent.

How to use it: You just have to spread them over areas you don’t want the dogs to disturb.