Checking the Installation Method
runme.sh
wizard
script.
Normally, if RHEL and CentOS was selected in the wizard, the RPM installer was used. If All Other Linux OS was selected in the wizard, the shell script installer was used. So use the appropriate uninstall command based on the command that was used to install the agent.
rpm -qa | grep appdynamics-php-agent