File: delete-index.asciidoc

package info (click to toggle)
elasticsearch 1.0.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 37,220 kB
  • sloc: java: 365,486; xml: 1,258; sh: 714; python: 505; ruby: 354; perl: 134; makefile: 41
file content (19 lines) | stat: -rw-r--r-- 725 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[[indices-delete-index]]
== Delete Index

The delete index API allows to delete an existing index.

[source,js]
--------------------------------------------------
$ curl -XDELETE 'http://localhost:9200/twitter/'
--------------------------------------------------

The above example deletes an index called `twitter`. Specifying an index,
alias or wildcard expression is required.

The delete index API can also be applied to more than one index, or on
all indices (be careful!) by using `_all` or `*` as index.

In order to disable allowing to delete indices via wildcards or `_all`,
set `action.destructive_requires_name` setting in the config to `true`.
This setting can also be changed via the cluster update settings api.