---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.4
alternate:
  - https://ydb.tech/docs/en/yql/reference/syntax/drop-streaming-query.md
  - https://ydb.tech/docs/ru/yql/reference/syntax/drop-streaming-query.md
sourcePath: en/core/yql/reference/syntax/drop-streaming-query.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# DROP STREAMING QUERY

`DROP STREAMING QUERY` deletes a [streaming query](https://ydb.tech/docs/en/concepts/streaming-query/streaming-query.md).

## Syntax


```sql
DROP STREAMING QUERY [IF EXISTS] <query_name>
```


### Parameters

* `IF EXISTS` — do not fail if the streaming query does not exist.
* `query_name` — name of the streaming query to delete.

## Permissions

Requires [permission](https://ydb.tech/docs/en/yql/reference/syntax/grant.md#permissions-list) `REMOVE SCHEMA` on the streaming query. Example grant for `my_streaming_query`:


```sql
GRANT REMOVE SCHEMA ON my_streaming_query TO `user@domain`
```


## Examples

Delete `my_streaming_query`:


```sql
DROP STREAMING QUERY my_streaming_query
```


## See also

* [Streaming queries](https://ydb.tech/docs/en/concepts/streaming-query/streaming-query.md)
* [CREATE STREAMING QUERY](https://ydb.tech/docs/en/yql/reference/syntax/create-streaming-query.md)
* [ALTER STREAMING QUERY](https://ydb.tech/docs/en/yql/reference/syntax/alter-streaming-query.md)
