OpenSearch/docs/groovy-api/delete.asciidoc
Julie Tibshirani f854330e06
Make sure to use the type _doc in the REST documentation. (#34662)
* Replace custom type names with _doc in REST examples.
* Avoid using two mapping types in the percolator docs.
* Rename doc -> _doc in the main repository README.
* Also replace some custom type names in the HLRC docs.
2018-10-22 11:54:04 -07:00

17 lines
341 B
Plaintext

[[delete]]
== Delete API
The delete API is very similar to the
// {javaclient}/java-docs-delete.html[]
Java delete API, here is an
example:
[source,groovy]
--------------------------------------------------
def deleteF = node.client.delete {
index "test"
type "_doc"
id "1"
}
--------------------------------------------------