How to remove php 8 from Ubuntu code example Example: uninstall php 8.0 ubuntu $ sudo apt-get purge php7.*