The atomic bombings are the most prominent examples, but there were also the horrible. 'conventional' bombings of German cities like Dresden.
And the ongoing killing of prisoners who surrendered (a US army speciality in the Pacific, no prisoners, just kill them all)