{"id":4767,"date":"2024-10-02T06:10:45","date_gmt":"2024-10-02T06:10:45","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=4767"},"modified":"2024-10-03T11:15:37","modified_gmt":"2024-10-03T11:15:37","slug":"how-to-uninstall-nginx","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/","title":{"rendered":"How to Uninstall NGINX"},"content":{"rendered":"\n<p>NGINX is a popular web server used by many high traffic websites and applications all over the world. It is very versatile and easy to manage. However, sometimes web administrators need to remove NGINX server from their systems. In this article, we will learn how to uninstall NGINX. Depending on your Linux distribution, you will need to use the appropriate steps to uninstall NGINX from your server. We have described the steps to completely remove NGINX from Ubuntu\/Debian as well as RPM-based Linux.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#Why_Uninstall_NGINX\" >Why Uninstall NGINX<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#How_to_Uninstall_NGINX\" >How to Uninstall NGINX<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#1_Uninstall_NGINX_in_Ubuntu_Debian\" >1. Uninstall NGINX in Ubuntu \/ Debian<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#11_Check_NGINX_status\" >1.1 Check NGINX status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#12_Stop_NGINX_Server\" >1.2 Stop NGINX Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#13_Remove_NGINX_Installation\" >1.3 Remove NGINX Installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#14_Remove_Dependencies\" >1.4 Remove Dependencies<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#15_Check_NGINX_status\" >1.5 Check NGINX status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#16_Force_Remove_NGINX\" >1.6 Force Remove NGINX<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#2_Uninstall_NGINX_in_RPM-based_Systems\" >2. Uninstall NGINX in RPM-based Systems<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#21_Check_NGINX_status\" >2.1 Check NGINX status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#22_Stop_Disable_NGINX\" >2.2 Stop &amp; Disable NGINX<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#23_Disable_Auto_Start\" >2.3 Disable Auto Start<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#24_Remove_NGINX_Configuration_Settings\" >2.4 Remove NGINX Configuration &amp; Settings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#23_Remove_NGINX_Service\" >2.3 Remove NGINX Service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#24_Remove_NGINX_Installation\" >2.4 Remove NGINX Installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#25_Check_Status\" >2.5 Check Status<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Uninstall_NGINX\"><\/span>Why Uninstall NGINX<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are some common use cases when you need to remove NGINX from your system:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Configuration Problems<\/strong> &#8211; Sometimes your NGINX configuration may become faulty which causes problems in your website\/application. In such cases, you may need to remove and re-install NGINX.<\/li>\n\n\n\n<li><strong>Corrupted Installation<\/strong> &#8211; Sometimes, the NGINX installation may have become corrupted due to incomplete or faulty update. In this case also, you will need to uninstall NGINX<\/li>\n\n\n\n<li><strong>Use Different Server<\/strong> &#8211; You may want to switch to another web server such as Apache. By default, NGINX runs on port 80, also used by Apache. So you will need to get rid of NGINX to be able to switch to Apache server and run it on port 80.<\/li>\n\n\n\n<li><strong>Installation from Source<\/strong> &#8211; If you are installing NGINX from source, and your system already has an existing NGINX installation, then you must remove it before proceeding with installation. Otherwise, there will be 2 instances of NGINX on your system and Linux may use the wrong one.<\/li>\n\n\n\n<li><strong>Start Afresh<\/strong> &#8211; If you feel your system has become very slow and bloated, you may need to completely remove NGINX, along with its configuration files and do a fresh installation. This may also be required if your NGINX version is really old and Linux package managers are unable to update them. In this case also, you will need to uninstall and then re-install NGINX.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Uninstall_NGINX\"><\/span>How to Uninstall NGINX<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As mentioned earlier, the steps to uninstall NGINX are different for Debian\/Ubuntu and RPM systems. We will cover each of them one by one.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Uninstall_NGINX_in_Ubuntu_Debian\"><\/span>1. Uninstall NGINX in Ubuntu \/ Debian<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are the steps to completely remove NGINX from Ubuntu\/Debian systems.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"11_Check_NGINX_status\"><\/span>1.1 Check NGINX status<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can uninstall NGINX only if it is not running. So, first we need to check the status of NGINX server on our system. You can do this using systemctl command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo systemctl status nginx<br>\u25cb nginx - A high performance web server and a reverse proxy&gt;<br>     Loaded: loaded (\/lib\/systemd\/system\/nginx; disabled; v&gt;<br>     <strong>Active: inactive (dead)<\/strong><\/pre>\n\n\n\n<p>You should see its status as inactive (dead). Otherwise, stop it using the following command.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"12_Stop_NGINX_Server\"><\/span>1.2 Stop NGINX Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Stop NGINX server, if it is running, with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo systemctl stop nginx<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"13_Remove_NGINX_Installation\"><\/span>1.3 Remove NGINX Installation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>There are two components to NGINX server on a system &#8211; its installation and configuration. You can remove its installation with &#8216;apt remove&#8217; command as shown below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt remove nginx<\/pre>\n\n\n\n<p>The above command will remove NGINX installation but leave behind its configuration files in \/etc\/nginx. Also, it will not remove any of your website\/app files located at \/var\/www. It is useful if you plan to re-install NGINX in future.<\/p>\n\n\n\n<p>If you want, you can also add other NGINX modules that you want to remove, in the above command. Here is an example to remove nginx-commons package along with NGINX.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt remove nginx nginx-commons<\/pre>\n\n\n\n<p>If you also want to remove the configuration files of NGINX server, then use &#8216;apt purge&#8217; command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt purge nginx<\/pre>\n\n\n\n<p>The above command will delete NGINX installation, and also \/etc\/nginx directory along with its contents. I t will also remove all NGINX settings and configurations from your system. It is an excellent solution if you want to completely uninstall NGINX and have no plans to re-install it in future. It is also a great solution if you want to do a fresh installation of NGINX.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"14_Remove_Dependencies\"><\/span>1.4 Remove Dependencies<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Lastly, remove any other dependencies that were installed along with NGINX. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get autoremove<\/pre>\n\n\n\n<p>You will need to run this command irrespective of whether you uninstalled NGINX using &#8216;apt remove&#8217; or &#8216;apt purge&#8217; command.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"15_Check_NGINX_status\"><\/span>1.5 Check NGINX status<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Once you have removed NGINX server, check its status again to confirm its uninstallation. You should see the following output.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo systemctl status nginx<br>Unit nginx could not be found.<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"16_Force_Remove_NGINX\"><\/span>1.6 Force Remove NGINX<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Sometimes, even after running all these commands, NGINX may not be completely removed. In fact, when you restart your system, it may start running as before. This may happen if you have multiple versions of NGINX installed on your system, and if you have not removed them all, or if you have removed the wrong version. This is because NGINX offers different flavors such as nginx-core, nginx-light, etc. In such cases, you can run the following command to completely remove all variants of NGINX on your system.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get remove --purge nginx*<\/pre>\n\n\n\n<p>The above command is similar to the purge command used earlier, except that we use a wildcard character after nginx to match all packages starting with nginx keyword.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Uninstall_NGINX_in_RPM-based_Systems\"><\/span>2. Uninstall NGINX in RPM-based Systems<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We need to follow a different sequence of steps to uninstall NGINX from RPM based Linux systems such as Redhat, CentOS, Fedora.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"21_Check_NGINX_status\"><\/span>2.1 Check NGINX status<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>As mentioned before, we can remove NGINX from any system only if it is not running. So run the following command to check its status first.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo service status nginx<br>\u25cb nginx - A high performance web server and a reverse proxy&gt;<br>     Loaded: loaded (\/lib\/systemd\/system\/nginx; disabled; v&gt;<br>     <strong>Active: inactive (dead)<\/strong><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"22_Stop_Disable_NGINX\"><\/span>2.2 Stop &amp; Disable NGINX<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If it is running, then you need to stop it first and also disable it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo systemctl stop nginx<br>$ sudo systemctl disable nginx<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"23_Disable_Auto_Start\"><\/span>2.3 Disable Auto Start<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Run the following command to prevent NGINX from auto starting during system reboot.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo chkconfig nginx off<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"24_Remove_NGINX_Configuration_Settings\"><\/span>2.4 Remove NGINX Configuration &amp; Settings<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Next, we need to manually remove NGINX configuration and settings files from our system. They are located in different directories across the system. We will use rm command to delete them.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo rm -rf \/etc\/nginx<br>$ sudo rm -rf \/etc\/init.d\/nginx<br>$ sudo rm -rf \/var\/log\/nginx<br>$ sudo rm -rf \/var\/cache\/nginx\/<br>$ sudo rm -rf \/usr\/sbin\/nginx<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"23_Remove_NGINX_Service\"><\/span>2.3 Remove NGINX Service<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Next, remove NGINX application service from your system with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo rm -rf \/usr\/lib\/systemd\/system\/nginx<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"24_Remove_NGINX_Installation\"><\/span>2.4 Remove NGINX Installation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Lastly, remove NGINX installation itself with any of the following commands. You can use dnf or yum package manager for this purpose.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo dnf remove nginx<br>OR<br>$ sudo yum remove nginx<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"25_Check_Status\"><\/span>2.5 Check Status<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Again check status of NGINX service to confirm its uninstallation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo systemctl status nginx<br>Unit nginx could not be found.<\/pre>\n\n\n\n<p>Uninstallation in RPM-based systems involves more manual steps compared to that for Debian\/Ubuntu systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, we have learnt why you may need to remove NGINX from your system. We have also learnt how to remove NGINX from Ubuntu\/Debian as well as RPM-based systems. Depending on your requirement, you may choose to remove only NGINX installation but retain its configuration and settings, or completely remove NGINX installation altogether.<\/p>\n\n\n\n<p>Also read:<\/p>\n\n\n\n<p><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-password-protect-directory-in-nginx\/\">How to Password Protect Directory in NGINX<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/nginx-restrict-access-to-directory-and-subdirectories\/\">NGINX Restrict Access to Directory &amp; Subdirectories<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/nginx-restrict-access-to-url\/\">How to Restrict URL Access in NGINX<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes system administrators need to remove NGINX from server. Here is how to uninstall NGINX completely.<\/p>\n","protected":false},"author":1,"featured_media":4771,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[312],"class_list":["post-4767","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nginx","tag-uninstall-nginx"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Uninstall NGINX - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Sometimes system administrators need to remove NGINX from server. Here is how to uninstall NGINX completely.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Uninstall NGINX - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Sometimes system administrators need to remove NGINX from server. Here is how to uninstall NGINX completely.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-02T06:10:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-03T11:15:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/uninstall-nginx-completely.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"301\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Uninstall NGINX\",\"datePublished\":\"2024-10-02T06:10:45+00:00\",\"dateModified\":\"2024-10-03T11:15:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/\"},\"wordCount\":1062,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/uninstall-nginx-completely.jpg?fit=301%2C200&ssl=1\",\"keywords\":[\"uninstall nginx\"],\"articleSection\":[\"Nginx\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/\",\"name\":\"How to Uninstall NGINX - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/uninstall-nginx-completely.jpg?fit=301%2C200&ssl=1\",\"datePublished\":\"2024-10-02T06:10:45+00:00\",\"dateModified\":\"2024-10-03T11:15:37+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Sometimes system administrators need to remove NGINX from server. Here is how to uninstall NGINX completely.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/uninstall-nginx-completely.jpg?fit=301%2C200&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/uninstall-nginx-completely.jpg?fit=301%2C200&ssl=1\",\"width\":301,\"height\":200,\"caption\":\"uninstall nginx completely\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-uninstall-nginx\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Uninstall NGINX\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Uninstall NGINX - Ubiq BI","description":"Sometimes system administrators need to remove NGINX from server. Here is how to uninstall NGINX completely.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/","og_locale":"en_US","og_type":"article","og_title":"How to Uninstall NGINX - Ubiq BI","og_description":"Sometimes system administrators need to remove NGINX from server. Here is how to uninstall NGINX completely.","og_url":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2024-10-02T06:10:45+00:00","article_modified_time":"2024-10-03T11:15:37+00:00","og_image":[{"width":301,"height":200,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/uninstall-nginx-completely.jpg","type":"image\/jpeg"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Uninstall NGINX","datePublished":"2024-10-02T06:10:45+00:00","dateModified":"2024-10-03T11:15:37+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/"},"wordCount":1062,"commentCount":0,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/uninstall-nginx-completely.jpg?fit=301%2C200&ssl=1","keywords":["uninstall nginx"],"articleSection":["Nginx"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/","url":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/","name":"How to Uninstall NGINX - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/uninstall-nginx-completely.jpg?fit=301%2C200&ssl=1","datePublished":"2024-10-02T06:10:45+00:00","dateModified":"2024-10-03T11:15:37+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Sometimes system administrators need to remove NGINX from server. Here is how to uninstall NGINX completely.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/uninstall-nginx-completely.jpg?fit=301%2C200&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/uninstall-nginx-completely.jpg?fit=301%2C200&ssl=1","width":301,"height":200,"caption":"uninstall nginx completely"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nginx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Uninstall NGINX"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/uninstall-nginx-completely.jpg?fit=301%2C200&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-1eT","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/4767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=4767"}],"version-history":[{"count":24,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/4767\/revisions"}],"predecessor-version":[{"id":4823,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/4767\/revisions\/4823"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/4771"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=4767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=4767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=4767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}