Firefox can do this automatically. Options > Privacy & Security > check the box "Delete cookies and site data when Firefox is closed".
Anything you intentionally want to retain can be added to the exceptions list.
Anything you intentionally want to retain can be added to the exceptions list.
Perhaps I should just accept the consent and remove cookies regularly, instead of being careful with the consent forms... Hmm, good idea.