A hamster should never be inside a wall. If your hamster has gotten into a wall, contact a pest control company or animal control officer for safe and humane removal. Professionals have the equipment and expertise to extract the animal without harming it or damaging your property.