How to delete a field from a document?

One way I found was to use a script as was mentioned here:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-update.html
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b91c8b07-1859-4a71-bc5a-70693ac7fcc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.