Totally reset kmail

kmail suits me well in all respects except it wont do imap nicely
it does not sync
it does not save sent in imap folder

I setup in a VM and everything works nicely

I nuked .config and .local and tried to reinstall
kmail ‘detects’ claws mail, which I tried then removed and thunderbird.
I do not want any shared inboxes. I would like to setup as I did in the VMs, but boy I can’t.

How do I start from scratch?

What can I do to get imap working correctly (sorry about the “how long is a string”)

I’m frustrated by thunderbird, kmail tantalizes with everything I want, but THIS copy wont work