Digging holes is a natural behavior for dogs and these sorts of behaviors are the hardest to stop. However, if a cause for the digging that is treatable can be identified, it may be able t help with the behavior, especially if it is related to separation anxiety.
Below you will find an attachment to learn more about digging dogs: