This is a question for biology??
-
Insects excrete wastes via malphigian tubules. These are very tiny tubes that out pouch from the gut wall. The tubes wave around in the body cavity fluid where the cells that make up the tubes pump wastes out of the body fluid and into the lumen of the tubes. The wastes make their way down the tubes into the gut and leave the body along with the solid digestive wastes.