Don't know what size off hand, I used a crescent hamm....I mean wrench

.
The top nut is 30mm
It's a pretty quick job, maybe you could have someone hold your bar assembly out of the way. That way you won't need to disconnect anything.
I just leave mine attached to the top clamp and pull it off as a unit -Bars, risers clamp- and let it hang.