# How to delete record from indexType?

**URL:** <https://discuss.elastic.co/t/how-to-delete-record-from-indextype/6991>\
**Category:** Elasticsearch\
**Created:** [March 14, 2012, 10:11am UTC](https://discuss.elastic.co/t/how-to-delete-record-from-indextype/6991 "2012-03-14T10:11:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [March 14, 2012, 10:11am UTC](https://discuss.elastic.co/t/how-to-delete-record-from-indextype/6991/1 "2012-03-14T10:11:28Z")

</div>

Hi

I have index named master and master contain server index-type like  
type1,type2,type3.I want to delete record from type1 index-type on the  
basis of document id.please tell me which java API will help me to delete  
record from index-type.

Thanks

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 14, 2012, 12:46pm UTC](https://discuss.elastic.co/t/how-to-delete-record-from-indextype/6991/2 "2012-03-14T12:46:38Z")

</div>

USe the delete API, and provide the index name, type, and id.

On Wednesday, March 14, 2012 at 12:11 PM, sam wrote:

> Hi
> 
> I have index named master and master contain server index-type like type1,type2,type3.I want to delete record from type1 index-type on the basis of document id.please tell me which java API will help me to delete record from index-type.
> 
> Thanks

---

<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:** [July 6, 2017, 3:36am UTC](https://discuss.elastic.co/t/how-to-delete-record-from-indextype/6991/3 "2017-07-06T03:36:10Z")

</div>

Closed on July 6, 2017, 3:36am UTC


