When deleting wallets, any TX that merged to other TX in other wallets will delete those TX as well. Same thing if you just delete a TX in a wallet that has merged to another wallet TX.
This in turns messes with everything. Could you please make it to where only those TX in the wallet you're deleting gets deleted & not from any other wallet? Same with just deleting a TX in a wallet gets deleted & not the TX that was merged to it.