2020-04-28 19:38:01 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[[ilm-delete]]
|
|
|
|
=== Delete
|
|
|
|
|
|
|
|
Phases allowed: delete.
|
|
|
|
|
|
|
|
Permanently removes the index.
|
|
|
|
|
2020-06-30 07:24:35 -04:00
|
|
|
ifdef::permanently-unreleased-branch[]
|
2020-04-28 19:38:01 -04:00
|
|
|
[[ilm-delete-options]]
|
|
|
|
==== Options
|
|
|
|
|
|
|
|
`delete_searchable_snapshot`::
|
|
|
|
(Optional, boolean)
|
|
|
|
Deletes the searchable snapshot created in the cold phase.
|
|
|
|
Defaults to `true`.
|
|
|
|
This option is applicable when the <<ilm-searchable-snapshot-action,searchable
|
|
|
|
snapshot>> action is used in the cold phase.
|
2020-06-30 07:24:35 -04:00
|
|
|
endif::[]
|
2020-04-28 19:38:01 -04:00
|
|
|
|
|
|
|
[[ilm-delete-action-ex]]
|
|
|
|
==== Example
|
|
|
|
|
|
|
|
[source,console]
|
|
|
|
--------------------------------------------------
|
|
|
|
PUT _ilm/policy/my_policy
|
|
|
|
{
|
|
|
|
"policy": {
|
|
|
|
"phases": {
|
|
|
|
"delete": {
|
|
|
|
"actions": {
|
|
|
|
"delete" : { }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|