When you catch your dog digging in your carpet, clap your hands or make some noise. But don't yell or do anything else that will scare your dog. You also can get some toys to calm down the anxiety of your dog.