If you choose 'apache' only, better remove nginx with 'yum remove nginx -y'.
I think, I have removed. See output below and see print screen.
[root@server1 ~]# yum remove nginx -y
Loaded plugins: fastestmirror, priorities, protectbase, replace
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 0:1.11.1-1.el6.ngx will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
nginx x86_64 1.11.1-1.el6.ngx @mratwork-nginx 2.1 M
Transaction Summary
================================================================================
Remove 1 Package(s)
Installed size: 2.1 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : nginx-1.11.1-1.el6.ngx.x86_64 1/1
warning: /etc/nginx/nginx.conf saved as /etc/nginx/nginx.conf.rpmsave
warning: /etc/nginx/fastcgi_params saved as /etc/nginx/fastcgi_params.rpmsave
warning: /etc/nginx/conf.d/default.conf saved as /etc/nginx/conf.d/default.conf.rpmsave
Verifying : nginx-1.11.1-1.el6.ngx.x86_64 1/1
Removed:
nginx.x86_64 0:1.11.1-1.el6.ngx
Complete!
[root@server1 ~]#