Does bleach kill maggots?

Have you ever had this situation in the home as we had? It’s been scorching hot for a couple of days, and yes, as the trashcan is not full yet, you have decided not to empty it. You wake up, and...