Most cockroaches feed on decaying organic matter, which traps a lot of nitrogen.
In other words, extinction of cockroaches would have a big impact on forest health and therefore indirectly on all the species that live there." In short, we really, really need cockroach poop.
However if cockroaches did go extinct then the earth could get by just fine in other ways.