sudo apt-get remove composer

sudo apt-get remove --auto-remove composer

sudo apt-get purge composer

sudo apt-get purge --auto-remove composer


Reference: https://howtoinstall.co/en/composer?action=remove