mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
PRs #73062 and #73043 repurposed the `alias` anchor for a new guide for index and data stream aliases. Previously, this anchor was used for our field alias documentation. Repurposing the anchor has caused continuity errors for users selecting different versions of the ES docs. It could also cause confusion for users with a `/current/` link to the `alias` page. This updates the anchor for the alias guide and adds a redirect page to disambiguate the `alias` anchor. It also fixes a bread crumb issue for redirects following the 'Modifying your Data' redirect page. Closes #77034.
45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
[[indices-delete-alias]]
|
|
=== Delete alias API
|
|
++++
|
|
<titleabbrev>Delete alias</titleabbrev>
|
|
++++
|
|
|
|
Removes a data stream or index from an <<aliases,alias>>.
|
|
|
|
[source,console]
|
|
----
|
|
DELETE my-data-stream/_alias/my-alias
|
|
----
|
|
// TEST[setup:my_data_stream]
|
|
// TEST[s/^/PUT my-data-stream\/_alias\/my-alias\n/]
|
|
// TEST[teardown:data_stream_cleanup]
|
|
|
|
[[delete-alias-api-request]]
|
|
==== {api-request-title}
|
|
|
|
`DELETE <target>/_alias/<alias>`
|
|
|
|
`DELETE <target>/_aliases/<alias>`
|
|
|
|
[[delete-alias-api-prereqs]]
|
|
==== {api-prereq-title}
|
|
|
|
* If the {es} {security-features} are enabled, you must have the `manage`
|
|
<<privileges-list-indices,index privilege>> for the alias and it data streams or
|
|
indices.
|
|
|
|
[[delete-alias-api-path-params]]
|
|
==== {api-path-parms-title}
|
|
|
|
`<alias>`::
|
|
(Required, string) Comma-separated list of aliases to remove. Supports wildcards
|
|
(`*`). To remove all aliases, use `*` or `_all`.
|
|
|
|
`<target>`::
|
|
(Required, string) Comma-separated list of data streams or indices used to limit
|
|
the request. Supports wildcards (`*`).
|
|
|
|
[[delete-alias-api-query-params]]
|
|
==== {api-query-parms-title}
|
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
|