Some breeds are genetically hardwired to dig
One possible solution is to choose certain areas of the yard for your dog to dig to his hearts content. You could create a large, deep sand and earth area, and you can even plant grass on the top to really make your dog happy. Dogs seem for some reason to prefer to attack the grass rather than raw dirt. It won't take long before he understands that the area you created is where he can dig and every place else is NO. Initially it will take keeping a close eye for when the digging happens in an inappropriate area, swoop down with a "NO!", and immediately redirect towards the allowed area, and issue praise as soon as the digging starts in the allowed designated place.
A mistake many dog owners make is to attempt to correct and worse yell at the dog long after the act. This only upsets, confuses, and frustrates the dog. You must make sure if you reprimand, its right in the middle of the act! In order for a correction to make any sense to your dog,.
If it's a temperature issue
Dogs know that digging exposes cool, moist dirt to help keep them at a comfortable temperature. In summer, many dogs will dig in the earth to expose an area to lie in for comfort. All dogs need access to plenty of shade and cool water especially flat-faced dogs like a pug or a Bulldog which is not your breed, but this can literally be a matter of life and death for a brachycephalic (pug-nosed) dog that can't self-regulate their body temperature). Make sure your dog has a shady and cool area to hang out. If trees are not there erect an awning, or well shade his kennel with sheets or a light colored canvas over it and of course ensure there is a supply of fresh, cold water at all times. If your dog is cool, happy, and entertained, you stand a chance and not a guarantee that the digging will be stopped, curtailed or at least managed.
For the Inappropriate Areas to be digging
Your dog is going to dig in certain areas of the yard when you are not looking. To prevent the digging in the off limits areas, try:
- Try ground pepper, the smell deters most dogs.
- place chicken wire mesh around plants. Shrubs, and underneath the ground you want to protect. After a while your dog should get discouraged and stay away from the area.
Boredom
If your dog spends a good deal of time alone and has little to occupy his time, it's almost guaranteed that the attention will turn to irritating habits like digging barking. This is not the fault of the dog. Long hours alone can be difficult for companionship-oriented pack animals like dogs, who require something to stimulate the mind and body. Kcubello's response was also filled with good advice, I hope this has helped.
Cheers!
Jay