The entire tail piece had to come off. I took the trim above and below all the way off and then lifted it off to be cleaned and repainted.
This revealed much more damage. Here you see rot along the right side covered with white caulk.
The water was absorbed up under the roof line so this rotted stretch had to be removed as well. I used a razor to get as much off as I could and replaced some of the foam and wooden slats.