To prevent squirrels from digging up your yard, remove their food source because they bury nuts and quickly forget where they buried them. That includes almonds and other foods they enjoy. You might get a big yard vacuum.