35 lines
261 B
Markdown
35 lines
261 B
Markdown
|
---
|
|||
|
title: Delete_DSL
|
|||
|
updated: 2021-05-04 14:58:11Z
|
|||
|
created: 2021-05-04 14:58:11Z
|
|||
|
---
|
|||
|
|
|||
|
# Delete DSL
|
|||
|
|
|||
|
### delete document
|
|||
|
|
|||
|
```json
|
|||
|
```json
|
|||
|
{
|
|||
|
DELETE /<index>/_doc/<id>
|
|||
|
}
|
|||
|
```
|
|||
|
```
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
### delete by query
|
|||
|
|
|||
|
```json
|
|||
|
{
|
|||
|
POST /<index>/_delete_by_query
|
|||
|
{
|
|||
|
```
|