The exterminator is a Service NPC in The Sims 2. If there is garbage on a lot, or the lot has been visited by evil witches[TS2:AL], and cockroaches are crawling around, call the exterminator and they will rid the lot of them.
Sims can be directed to perform the action "Spray," which causes a Sim to use bug spray to kill cockroaches. In The Sims, Sims who try to stomp cockroaches aren't likely to have much luck at getting rid of them.
The Sims 2
The Exterminator wears a yellow suit with orange details and a hat. They also carry a tub of bug spray on their back which connects to a hose in their hand. If a household has a butler, he will call the exterminator, but he cannot actually spray the cockroaches himself.
Cost and Availability
The exterminator charges §10 per visit, and §50 per hour. If the service is called before 9:00 am, an exterminator will come at 9:00 am. The exterminator will leave when all bugs are dead, but will not clean up the dead bugs.
List of Exterminators