{"id":14015,"date":"2020-02-08T15:01:15","date_gmt":"2020-02-08T14:01:15","guid":{"rendered":"https:\/\/www.datanovia.com\/en\/?post_type=dt_lessons&#038;p=14015"},"modified":"2020-02-08T15:22:45","modified_gmt":"2020-02-08T14:22:45","slug":"how-to-remove-a-domain-from-certbot-and-nginx","status":"publish","type":"dt_lessons","link":"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/","title":{"rendered":"How to Remove a Domain from Certbot and NGINX"},"content":{"rendered":"<div id=\"rdoc\">\n<p>You will learn how to <strong>remove a domain from Nginx and Cerbot (SSL) configuration files<\/strong>.<\/p>\n<p>Contents:<\/p>\n<div id=\"TOC\">\n<ul>\n<li><a href=\"#step-1-specify-the-domain-name\">Step 1: Specify the domain name<\/a><\/li>\n<li><a href=\"#step-2-remove-an-nginx-config-from-sites-enabled\">Step 2: Remove an nginx Config from Sites-Enabled<\/a><\/li>\n<li><a href=\"#step-3-remove-certificate-for-a-domain\">Step 3: Remove certificate for a domain<\/a><\/li>\n<\/ul>\n<\/div>\n<div id=\"step-1-specify-the-domain-name\" class=\"section level2\">\n<h2>Step 1: Specify the domain name<\/h2>\n<pre class=\"bash\"><code>mydomain=apps.example.com<\/code><\/pre>\n<\/div>\n<div id=\"step-2-remove-an-nginx-config-from-sites-enabled\" class=\"section level2\">\n<h2>Step 2: Remove an nginx Config from Sites-Enabled<\/h2>\n<pre class=\"bash\"><code># Remove the domain config files\r\ncd \/etc\/nginx\r\nsudo rm sites-available\/$mydomain\r\nsudo rm sites-enabled\/$mydomain\r\n\r\n# Check whether nginx has valid configurations and then reload the service\r\nsudo nginx -t  \r\nsudo service nginx restart <\/code><\/pre>\n<\/div>\n<div id=\"step-3-remove-certificate-for-a-domain\" class=\"section level2\">\n<h2>Step 3: Remove certificate for a domain<\/h2>\n<pre class=\"bash\"><code># Show the list of certificates\r\ncertbot certificates\r\n\r\n# Remove certificates for a given domain\r\nsudo certbot delete --cert-name $mydomain<\/code><\/pre>\n<\/div>\n<\/div>\n<p><!--end rdoc--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You will learn how to remove a domain from Nginx and Cerbot (SSL) configuration files.<\/p>\n","protected":false},"author":1,"featured_media":9074,"parent":0,"menu_order":15,"comment_status":"open","ping_status":"closed","template":"","class_list":["post-14015","dt_lessons","type-dt_lessons","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Remove a Domain from Certbot and NGINX - Datanovia<\/title>\n<meta name=\"description\" content=\"You will learn how to remove a domain from Nginx and Cerbot (SSL) configuration files.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Remove a Domain from Certbot and NGINX - Datanovia\" \/>\n<meta property=\"og:description\" content=\"You will learn how to remove a domain from Nginx and Cerbot (SSL) configuration files.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/\" \/>\n<meta property=\"og:site_name\" content=\"Datanovia\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-08T14:22:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X27336761_576773735995908_787882070073277531_n.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/\",\"url\":\"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/\",\"name\":\"How to Remove a Domain from Certbot and NGINX - Datanovia\",\"isPartOf\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X27336761_576773735995908_787882070073277531_n.jpg\",\"datePublished\":\"2020-02-08T14:01:15+00:00\",\"dateModified\":\"2020-02-08T14:22:45+00:00\",\"description\":\"You will learn how to remove a domain from Nginx and Cerbot (SSL) configuration files.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/#primaryimage\",\"url\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X27336761_576773735995908_787882070073277531_n.jpg\",\"contentUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X27336761_576773735995908_787882070073277531_n.jpg\",\"width\":1024,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.datanovia.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lessons\",\"item\":\"https:\/\/www.datanovia.com\/en\/lessons\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Remove a Domain from Certbot and NGINX\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#website\",\"url\":\"https:\/\/www.datanovia.com\/en\/\",\"name\":\"Datanovia\",\"description\":\"Data Mining and Statistics for Decision Support\",\"publisher\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.datanovia.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#organization\",\"name\":\"Datanovia\",\"url\":\"https:\/\/www.datanovia.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png\",\"contentUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png\",\"width\":98,\"height\":99,\"caption\":\"Datanovia\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Remove a Domain from Certbot and NGINX - Datanovia","description":"You will learn how to remove a domain from Nginx and Cerbot (SSL) configuration files.","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:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/","og_locale":"en_US","og_type":"article","og_title":"How to Remove a Domain from Certbot and NGINX - Datanovia","og_description":"You will learn how to remove a domain from Nginx and Cerbot (SSL) configuration files.","og_url":"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/","og_site_name":"Datanovia","article_modified_time":"2020-02-08T14:22:45+00:00","og_image":[{"width":1024,"height":512,"url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X27336761_576773735995908_787882070073277531_n.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/","url":"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/","name":"How to Remove a Domain from Certbot and NGINX - Datanovia","isPartOf":{"@id":"https:\/\/www.datanovia.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/#primaryimage"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X27336761_576773735995908_787882070073277531_n.jpg","datePublished":"2020-02-08T14:01:15+00:00","dateModified":"2020-02-08T14:22:45+00:00","description":"You will learn how to remove a domain from Nginx and Cerbot (SSL) configuration files.","breadcrumb":{"@id":"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/#primaryimage","url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X27336761_576773735995908_787882070073277531_n.jpg","contentUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X27336761_576773735995908_787882070073277531_n.jpg","width":1024,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/www.datanovia.com\/en\/lessons\/how-to-remove-a-domain-from-certbot-and-nginx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.datanovia.com\/en\/"},{"@type":"ListItem","position":2,"name":"Lessons","item":"https:\/\/www.datanovia.com\/en\/lessons\/"},{"@type":"ListItem","position":3,"name":"How to Remove a Domain from Certbot and NGINX"}]},{"@type":"WebSite","@id":"https:\/\/www.datanovia.com\/en\/#website","url":"https:\/\/www.datanovia.com\/en\/","name":"Datanovia","description":"Data Mining and Statistics for Decision Support","publisher":{"@id":"https:\/\/www.datanovia.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.datanovia.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.datanovia.com\/en\/#organization","name":"Datanovia","url":"https:\/\/www.datanovia.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png","contentUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png","width":98,"height":99,"caption":"Datanovia"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/"}}]}},"multi-rating":{"mr_rating_results":[]},"_links":{"self":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/dt_lessons\/14015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/dt_lessons"}],"about":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/types\/dt_lessons"}],"author":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/comments?post=14015"}],"version-history":[{"count":0,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/dt_lessons\/14015\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/media\/9074"}],"wp:attachment":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/media?parent=14015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}