I have used mothballs to move one out of my yard years ago-but those are considered hazardous material now I believe because of the fumes when these dissolve. I have used bars of bath soap (slivers I have saved) and tied them in cloth or mesh bags hanging them from my fence to keep other critters out of my garden.