---
type: api
title: Delete data stream options
description: Removes the data stream options from a data stream.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-indices-delete-data-stream-options
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-indices-delete-data-stream-options
products:
  - Elasticsearch
---

# Delete data stream options

Availability: 8.19+

## Paths

- `DELETE` `/_data_stream/{name}/_options`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#bearerauth)

#### Path Parameters

- `name` (union DataStreamName | [] DataStreamName)
  A comma-separated list of data streams of which the data stream options will be deleted.
Use `*` to get all data streams

## Description

Removes the data stream options from a data stream.

## Query String Parameters

- `expand_wildcards` (string ExpandWildcards · default: open)
  Whether wildcard expressions should get expanded to open or closed indices

Supported values include:
  - `all`: Match any data stream or index, including hidden ones.
  - `open`: Match open, non-hidden indices. Also matches any non-hidden data stream.
  - `closed`: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
  - `hidden`: Match hidden data streams and hidden indices. Must be combined with `open`, `closed`, or `both`.
  - `none`: Wildcard expressions are not accepted.
  Values: `all`, `open`, `closed`, `hidden`, `none`
- `master_timeout` (string Duration · default: 30s)
  The period to wait for a connection to the master node.
- `timeout` (string Duration · default: 30s)
  The period to wait for a response.

## Response

`application/json`

- `acknowledged` (boolean)
  For a successful response, this value is always true. On failure, an exception is returned instead.
## Code Examples

#### Console

```console
DELETE /_data_stream/{name}/_options
```

#### curl

```curl
curl -X DELETE "/_data_stream/{name}/_options"
```

## Response Examples

#### Indices delete data stream options response example1

A successful response for deleting data stream options.

```json
{
  "acknowledged": true
}
```

