Animals that feed on the flesh of animals that are already dead, instead of hunting live animals, are called scavengers.
Decomposers are organisms that feed on dead plants and animals and decompose them, e.g., fungi and bacteria.
Decomposers and scavengers help in keeping the environment clean by removing dead plants and animals.