Do I need to delete old programmes before installing newer versions ? (Solved)

Hi All,
I have been doing a lot of mucking about with Wordpress, Apache Server,MyPHP etc. and would like to remove them before using another site to create a website.
Is it necessary to clean out my HD or will the new setup sit apart from the old stuff I have ?

If you do an;

apt-get remove --purge <packages>
apt-get autoremove

On the stuff you want to reinstall, it should remove the associated stuff (i.e. your config files etc …) . Anything it leaves, it’ll tell you so you can go delete it manually …

Thanks for that. I think it is all ok.