[Recipes] Delete an Index and Domain in Amazon ES

Problem: 

Delete the index (employee) and Amazon ES Domain (es-demo-domain) created in previous recipes.

Solution Summary: 

You can delete an index from Kibana, command line or any HTTP client.

You can delete an Amazon ES Domain either from AWS Console or AWS CLI.

Solution Steps: 

Case 1 - Delete Index from Elasticsearch

curl -XDELETE <endpoint>/employee

Note: In real world, you will also need to configure and use authentication while making requests against Amazon ES from command line. See bulk update note on Elastic Cloud for syntax to pass username and password.

 

Case 2 - Delete Domain from CLI

aws es delete-elasticsearch-domain --domain-name <domain-name>

Note: You will need to configure your AWS credentials in your local machine. See AWS section for more details.

 

Case 3 - Delete Domain from AWS Console

  1. Login to AWS Console and go to Amazon ES.

  2. Select your domain on the left and click 'Delete Domain'.

  3. Check the checkbox as a confirmation for delete and click 'Delete'.

Recipe Tags: 

Learn Serverless from Serverless Programming Cookbook

Contact

Please first use the contact form or facebook page messaging to connect.

Offline Contact
We currently connect locally for discussions and sessions at Bangalore, India. Please follow us on our facebook page for details.
WhatsApp (Primary): (+91) 7411174113
Phone (Escalations): (+91) 7411174114

Business newsletter

Complete the form below, and we'll send you an e-mail every now and again with all the latest news.

About

CloudMaterials is my blog to share notes and learning materials on Cloud and Data Analytics. My current focus is on Microsoft Azure and Amazon Web Services (AWS).

I like to write and I try to document what I learn to share with others. I believe that knowledge is useless unless you share it; the more you share, the more you learn.

Recent comments

Photo Stream