# Deleted field, result is successfull, but field is still there

**URL:** <https://discuss.elastic.co/t/deleted-field-result-is-successfull-but-field-is-still-there/271287>\
**Category:** Elasticsearch\
**Created:** [April 26, 2021, 6:31pm UTC](https://discuss.elastic.co/t/deleted-field-result-is-successfull-but-field-is-still-there/271287 "2021-04-26T18:31:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NLSVTN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nlsvtn/32/84889_2.png) [@NLSVTN](https://discuss.elastic.co/u/NLSVTN)\
**Post date:** [April 26, 2021, 6:31pm UTC](https://discuss.elastic.co/t/deleted-field-result-is-successfull-but-field-is-still-there/271287/1 "2021-04-26T18:31:45Z")

</div>

Hi,

I am using Kibana for interacting with my indices. I have a field in `_source`: '\_nisc\_AC' which I am trying to delete in the following way:

```
POST grch38_test __wes__ grch38/_update_by_query?conflicts=proceed
{
    "script" : "ctx._source.remove('nisc_AC')",
    "query" : {
        "exists": { "field": "nisc_AC" }
    }
}

```

When I ran it first time, it took several seconds and returned success, no failures. Then I accessed the index again with:

`GET /grch38_test __wes__ grch38/_search`

And the field `nisc_AC` is there. I tried seeing which versions of the documents I am having but there is no `_version` field present in my documents. I ran `_refresh` for the index, but it just mixed up the fields' order without removing them. What is going on? How could I remove key and value from all of the documents?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2021, 12:53am UTC](https://discuss.elastic.co/t/deleted-field-result-is-successfull-but-field-is-still-there/271287/2 "2021-04-27T00:53:45Z")

</div>

One thing I can think of would be to add a [`?refresh`](https://www.elastic.co/guide/en/elasticsearch/reference/7.12/docs-refresh.html) to the request, or just use the [refresh API](https://www.elastic.co/guide/en/elasticsearch/reference/7.12/indices-refresh.html) on the index and then see if you can still see the field.

---

<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:** [May 25, 2021, 12:54am UTC](https://discuss.elastic.co/t/deleted-field-result-is-successfull-but-field-is-still-there/271287/3 "2021-05-25T00:54:36Z")

</div>

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