title: Unable to uninstall nginx on Mac OS X
body: <p>Output of <code>nginx -v</code>:
  <code>nginx version: nginx/1.14.0</code>.</p>
  
  <p>After running <code>brew uninstall nginx</code> or <code>brew remove nginx</code>, it gives error:</p>
  
  <pre><code>Error: No such keg: /usr/local/Cellar/nginx
  </code></pre>
  
  <p>I have tried :</p>
  
  <pre><code>rm -f /usr/local/sbin/nginx
  rm -f -R /usr/local/etc/nginx
  rm -r /usr/local/opt/nginx
  </code></pre>
  
  <p>But still <code>nginx -v</code> giving output: <code>nginx version: nginx/1.14.0</code></p>
  
  <p>How can I remove the nginx installation?</p>