During the taxation phase, all golds unspent will be returned to the treasury automatically.
If your hand is larger than your reserve, a select window will popup for you to choose which card to discard.