Just as you can purchase from the private market, you can also quickly sell your excess goods to it, though for significantly lower returns.
As is the case with buying, having a large percentage of your empire occupied by Markets and Keeps will increase the selling prices of military units to up to 50% of their usual purchase price.
A maximum of 84.5% of each type of military unit can be sold on the private market in a given time span - in order to sell more, you must wait a while.