Bismihi ta'ala
It would be best to put this food somewhere in your backyard or an open area, so birds can eat from it, as long as the food is not harmful to animals. Or if you have a compost bin.
If you have no way of getting rid of the food other than throwing it in the rubbish bin, then you have no option.
And Allah knows best