If you have manually added the extension line to the php.ini, the PHP agent can be uninstalled by removing the extension line for contrast.so from the php.ini file:
extension=/usr/local/lib/contrast/php/contrast.so
The PHP agent will be disabled when the extension line is removed from the php.ini file.
Then using the appropriate command for your environment, remove the installed files:
apt remove contrast-php-agent
or
yum remove contrast-php-agent
If you have manually created a contrast.ini in the .ini file scan directory, remove that contrast.ini file. The contrast.ini can be found by running:
php -i | grep Scan
If you have installed the agent using the contrast-php-util, use the disable-agent command:
contrast-php-util disable-agent