Like most birds, a robin's diet is made up of seeds, berries, and bugs like beetles, mealworms, and earthworms. While worms can be hard to get rid of, eliminating beetles can help deter robins and protect your plants from the detrimental effects of the beetles themselves.