--- layout: default title: Delete data stream parent: Data stream APIs nav_order: 50 --- # Delete Data Stream API **Introduced 1.0** {: .label .label-purple } The Delete Data Stream API deletes a data stream and its backing indexes. ## Endpoints ```json DELETE /_data_stream/{name} ``` ## Path parameters The following table lists the available path parameters. | Parameter | Required | Data type | Description | | :--- | :--- | :--- | :--- | | `name` | **Required** | List or String | A comma-separated list of data streams to delete. Wildcard (`*`) expressions are supported. | ## Query parameters The following table lists the available query parameters. All query parameters are optional. | Parameter | Data type | Description | Default | | :--- | :--- | :--- | :--- | | `error_trace` | Boolean | Whether to include the stack trace of returned errors. | `false` | | `filter_path` | List or String | Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with `-`. | N/A | | `human` | Boolean | Whether to return human-readable values for statistics. | `false` | | `pretty` | Boolean | Whether to pretty format the returned JSON response. | `false` | | `source` | String | The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. | N/A | ## Example request The following example request deletes the `logs-app` data stream and its backing indexes: {% capture step1_rest %} DELETE /_data_stream/logs-app {% endcapture %} {% capture step1_python %} response = client.indices.delete_data_stream( name = "logs-app" ) {% endcapture %} {% include code-block.html rest=step1_rest python=step1_python %} ## Example response ```json { "acknowledged": true } ``` ## Required permissions If you use the Security plugin, make sure you have the appropriate permissions: `indices:admin/data_stream/delete`. ## Related documentation - [Data streams]({{site.url}}{{site.baseurl}}/im-plugin/data-streams/) - [Create or update a data stream]({{site.url}}{{site.baseurl}}/api-reference/data-stream/create-data-stream/)