It seems like you might be referring to the term detritivore, which is an organism that feeds on dead organic matter like decomposing plant and animal material. Detrivores play a crucial role in ecosystems by recycling nutrients back into the environment. Examples include earthworms, beetles, and certain types of bacteria and fungi.