It doesn't. The ruler can either keep his pet duke around as a court functionary, or dissolve the duchy.
Huh... so if you have the title of Duke and you get named Lord, you lose the title of Duke? Does this also apply to RTO and region buying? It would seem in these cases you don't have to swear fealty to anyone but yourself.