# Index Operations Update and delete existing records in elastic search

**URL:** https://discuss.elastic.co/t/index-operations-update-and-delete-existing-records-in-elastic-search/69421
**Category:** Elasticsearch
**Created:** [December 19, 2016, 10:04am UTC](https://discuss.elastic.co/t/index-operations-update-and-delete-existing-records-in-elastic-search/69421 "2016-12-19T10:04:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vikrant\_trivedi](https://avatars.discourse-cdn.com/v4/letter/v/258eb7/32.png) [@vikrant\_trivedi](https://discuss.elastic.co/u/vikrant_trivedi)
#### Post date: [December 19, 2016, 10:04am UTC](https://discuss.elastic.co/t/index-operations-update-and-delete-existing-records-in-elastic-search/69421/1 "2016-12-19T10:04:44Z")

</div>

I have used this way to creating index and fetching data from it.

router.get('/create', function (req, res, next) {  
client.index({  
index: 'check',  
id: '1',  
type: 'test',  
body: {  
"user\_id": 1,  
"name": 'Vikrant Trivedi',  
}

```
            }, function (err, resp, status) {
                console.log(resp);
            });
        });

```

But i am not able to update and delete this existing record. Please help me out for the same, its bit urgent. Thanks

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [December 19, 2016, 10:07am UTC](https://discuss.elastic.co/t/index-operations-update-and-delete-existing-records-in-elastic-search/69421/2 "2016-12-19T10:07:03Z")

</div>

I am not sure I understand what the problem is. Please explain in greater detail.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 16, 2017, 10:07am UTC](https://discuss.elastic.co/t/index-operations-update-and-delete-existing-records-in-elastic-search/69421/3 "2017-01-16T10:07:05Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
