How to delete a field from a document?

One way I found was to use a script as was mentioned here:
There is an example of how to remove a field from a document.

Is there any other way this can be achieved?
For example, if i want to delete the field "field1" from a document, would
the below request do that?
curl -XPOST 'localhost:9200/test/type1/1/_update' -d '{
"field1": null

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit