I compiled Nginx now I want to remove or uninstall it. How can I do that?
I usually don't install software by compiling it from source.
By compile way of installing, do you mean "configure", "make" and "make install"?
If yes, you can go back to the same directory (that contains the source code) where you ran these make commands... You can then run "make uninstall" to uninstall the package..
You can see more detailed instructions to install and uninstall here:
Note: Most package provide uninstall target, so that "make uninstall" works properly.. However, this may not always be true and uninstalling such programs might be a pain. For Nginx, it looks like uninstall target is provided and "make uninstall" works fine.