The invention is related to a cockroach trap, particularly to an assembly of a body, an electric shock unit, a remove unit, a recovery unit, a positioning unit, a safety unit, a control unit and a power unit. Cockroaches captured by high voltage shock are swept into a recovery tank by arms driven by a remove motor while the remove unit is activated by the control unit. Captured cockroaches are poured out from recovery door near the back through the recovery area. This invention lures and kills the cockroaches by processing a series of four steps including autosensing, electric shock, sweep and manual recovery actions.