Skip to content

Commit

Permalink
delete all records
Browse files Browse the repository at this point in the history
  • Loading branch information
cherkavi authored Jan 25, 2022
1 parent c2b4e69 commit 90bb5a6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions elastic.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,13 @@ curl -X POST --insecure -s --user $USER:$PASSWORD $ELASTIC_HOST/$INDEX_NAME/_del
"query": { "match_all": {} }
}'
curl -X POST --insecure -s --user $USER:$PASSWORD $ELASTIC_HOST/$INDEX_NAME/_delete_by_query -H 'Content-Type: application/json' -d @- << EOF
{
"query": {
"match": {
"_id": "_all"
}
}
}
EOF
```

0 comments on commit 90bb5a6

Please sign in to comment.