You can easily uninstall NGINX with the help of WHM’s NGINX Manager interface.
For that you have to follow below steps:
Login to WHM.
Click on NGINX Manager under Software.
You can uninstall ea-nginx from NGINX option.
For the command line you can use below command:
yum erase ea-nginx