# Persistant mapping after deleting index (SOLVED - it was a template) \[noob\]

**URL:** <https://discuss.elastic.co/t/persistant-mapping-after-deleting-index-solved-it-was-a-template-noob/154613>\
**Category:** Elasticsearch\
**Created:** [October 30, 2018, 10:18am UTC](https://discuss.elastic.co/t/persistant-mapping-after-deleting-index-solved-it-was-a-template-noob/154613 "2018-10-30T10:18:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmnc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmnc/32/15014_2.png) [@dmnc](https://discuss.elastic.co/u/dmnc)\
**Post date:** [October 30, 2018, 10:18am UTC](https://discuss.elastic.co/t/persistant-mapping-after-deleting-index-solved-it-was-a-template-noob/154613/1 "2018-10-30T10:18:04Z")

</div>

Hi,

I'm learning to ES and Logstash, and because I need to plot geopoints to the map, I've somehow created this mapping:

```
{
  "mapping": {
    "_doc": {
      "properties": {
        "location": {
          "type": "geo_point"
        }
      }
    }
  }
}

```

However this prevents to create/save documents to the index and I'd like to delete this mapping. Regarding to the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-mapping.html), I can't do that. I can delete the whole index and I did that but after I put some new data to the ES, the new index (with the same name) contains this mapping again.

Other indexes works good and their default mapping is different, so I think problem lays here...

---

<div class="post-metadata">

**Author:** ![dmnc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmnc/32/15014_2.png) [@dmnc](https://discuss.elastic.co/u/dmnc)\
**Post date:** [October 30, 2018, 8:53pm UTC](https://discuss.elastic.co/t/persistant-mapping-after-deleting-index-solved-it-was-a-template-noob/154613/2 "2018-10-30T20:53:47Z")

</div>

got it: `DELETE _template/somename`

---

<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:** [November 27, 2018, 8:54pm UTC](https://discuss.elastic.co/t/persistant-mapping-after-deleting-index-solved-it-was-a-template-noob/154613/3 "2018-11-27T20:54:03Z")

</div>

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