Social insects need to keep a sanitary household, so they can't just go around pooping up the nest or the hive. Instead, they employ clever housekeeping strategies to remove or contain all the frass.
For some insects, frass cleanup is a job for adults. Adult cockroaches gather up all the poop and carry it out of the nest. Some wood-boring beetle adults pack frass into older, unused tunnels. In some leafcutter ant colonies, specific ants get the poop removal job, and spend their entire lives carting off their family's frass. Being the designated pooper scooper is a thankless job, and relegates these individuals to the bottom of the social ladder.
Social bees can hold their poop in for weeks or months at a time. Bee larvae have a blind gut, separate from the alimentary canal. The poop simply accumulates in the blind gut through their development. When they become adults, the young bees expel all the accumulated waste in one giant fecal pellet, called the meconium. Honey bees ceremoniously drop their mighty turds on their first flights from the nest.
Termite guts contain specialized bacteria that sanitize their feces. Their poop is so clean they can use it as construction material when building their nests.
Eastern tent caterpillars live together in silken tents, which quickly fill with frass. They expand their tents as they grow and the poop accumulates, to keep some distance between them and their frass.

