By opening the cheats window, you can either type:
kill_heir TAG, to kill your heir, where TAG is the country tag, in capitals - for example, France will be FRA, England ENG, Great Britain GBR, Spain SPA etc. Normally the first three letters.
or heir TAG, which gives you a new heir to replace the last one.