How to remove any php version installed on your system | Ubuntu | Linux Mint
Open your terminal type or copy/paste the following command sudo apt-get purge 'php*' …
Open your terminal type or copy/paste the following command sudo apt-get purge 'php*' …