Ants live in an orderly society, and when one dies, its body releases oleic acid, which signals the rest of the colony that death has occurred. Almost immediately, this triggers the other ants into action: The ants gather up their dead comrades and carry the bodies outside the nest, placing them in a pile called a midden. They do this to protect the colony, and their queen, from any type of contamination.
Disposing of the dead:
I hate ants! Cinnamon does work though. I started using it around the kitchen where there was a good hole back where we used to have a lot of ants and they are mostly gone now.
Put in areas where you think they come from, link cracks, around areas (like underneath kitchen or dishwasher areas or cabinets or inside bathroom) where you think they are coming from and it helps to keep them away.