Can animals survive without flies?

Animals could survive without frogs if they have any other kind of diet but while that some animals need to eat fles to survive just like an anteater need ants in their diet.