That is easy, just purge the current DE package with apt
then install the new DE package , again with apt
Depending on how your current DE is packaged , it may leave a few things behind… that does not really matter, as long as you remove the main meta-package
Dont try to have 2 DE’s installed at once. It can be done , but is complex, especially if one of them is KDE.
Neville