We bought a rodent zapper. It worked a couple of times, then mice wouldn’t go near it. I cleaned it thoroughly after its victims were removed, but I think they could still detect a smell of death. They’re smart little critters.
A long time ago when I had mice, I left an opened spaghetti box standing upright in the pantry. A mouse climbed on top of a closed oatmeal container to get into the spaghetti box.
Another one got caught in a trap with his front feet outside the trap and dragged the trap over to a mouse hole and somehow was able to get his feet inside the hole and keep walking and left the trap outside the hole.
When I told the super, he said “I wish I could only be as smart as them.”