Rather than throw food away , there are a number of alternatives which can be used to reduce waste:
Transform leftovers to make other meals – some great ideas can be found at https://www.bbcgoodfood.com/recipes/collection/leftovers. It seems obvious but freezing anything you’re not going to use as soon as possible will prevent it from spoiling.
Donate it – if you aren’t planning on using it, take it to a food bank where you can guarantee it will be used. Failing this, see if any of your neighbours will have any use for it.
Put it online – Olio is an app which can be used to rehouse unwanted food items (and other goods). Simply add a listing for the item and wait for someone to message you to organise pick-up.
Look at https://www.lovefoodhatewaste.com/ for more information and also https://onesharedearth.com/483/how-to-get-the-most-out-of-food-to-reduce-waste for tips on how to reduce waste.