Path parameters
-
Comma-separated list of data streams or indices used to limit the request. Supports wildcards (
*
). -
Comma-separated list of aliases to remove. Supports wildcards (
*
). To remove all aliases, use*
or_all
.
Query parameters
-
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
Values are
-1
or0
. -
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Values are
-1
or0
.
DELETE
/{index}/_aliases/{name}
Console
DELETE my-data-stream/_alias/my-alias
resp = client.indices.delete_alias(
index="my-data-stream",
name="my-alias",
)
const response = await client.indices.deleteAlias({
index: "my-data-stream",
name: "my-alias",
});
response = client.indices.delete_alias(
index: "my-data-stream",
name: "my-alias"
)
$resp = $client->indices()->deleteAlias([
"index" => "my-data-stream",
"name" => "my-alias",
]);
curl -X DELETE -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/my-data-stream/_alias/my-alias"