Trapping insects is one way to get rid of them and there are a variety of ways to make it happen. There are chemical-laden traps, like your average roach motel. Then, there are natural traps that use baits like pheromones to attract and then trap the insect on some sticky stuff. Sometimes, it's simply a color that attracts the insect. There are also old school traps made from tight mesh wire, which also use bait to attract and trap, typically by having entrances with no exit.