v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-076771,7565.2 MB
significant_events

Remove a query from a stream

Spaces method and path for this operation:

<div><span class="operation-verb delete">delete</span>&nbsp;<span class="operation-path">/s/{space_id}/api/streams/{name}/queries/{queryId}</span></div>

Refer to Spaces for more information.

Remove a query from a stream. Noop if the query is not found on the stream.<br/><br/>[Required authorization] Route required privileges: manage_stream.

delete/api/streams/{name}/queries/{queryId}

Path parameters

namestring required

The name of the stream.

queryIdstring required

The identifier of the query to remove.

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Request body

object required
OR
{"stackTrail":"paths:/api/streams/{name}/queries/{queryId}:delete:requestBody:content:application/json:schema:anyOf:1","oasType":"schema","type":"unknown","nullable":true}
OR
{"stackTrail":"paths:/api/streams/{name}/queries/{queryId}:delete:requestBody:content:application/json:schema:anyOf:2","oasType":"schema","type":"unknown"}

Response

The query was removed successfully.