How to completely remove PHP from Linux?

If you need to completely remove all the packages related to PHP, run the following.

sudo apt purge ‘php*’

To autoremove the unused dependencies, run the following.

sudo apt autoremove

Leave a Reply

Your email address will not be published. Required fields are marked *

Verified by MonsterInsights