To get rid of squirrels in your walls, you have to find their entry points and set up a trap. Ultrasonic noises can help persuade them to get out, but you must make sure you’ve closed up all the ways for them to get back in. One-way doors at obvious entry points allow the squirrel to exit, but not return.