---
metadata:
  - name: generator
    content: Diplodoc Platform v5.51.0
alternate:
  - https://e2e.viewer-test.ydocs.io/en/yql/syntax/drop_view.md
  - https://e2e.viewer-test.ydocs.io/ru/yql/syntax/drop_view.md
  - href: https://e2e.viewer-test.ydocs.io/en/yql/syntax/drop_view.md
    type: text/markdown
    title: Markdown version
  - href: https://e2e.viewer-test.ydocs.io/en/llms.txt?revision=ytsaurus-test-revision5
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://e2e.viewer-test.ydocs.io/en/llms.txt?revision=ytsaurus-test-revision5

# DROP VIEW

`DROP VIEW` deletes an independent [view](https://e2e.viewer-test.ydocs.io/en/yql/syntax/select/view.md).

## Syntax

```yql
DROP VIEW [IF EXISTS] [cluster.]`//path/to/view`;
```

If `//path/to/view` is not a view, the command fails with an error.
An attempt to drop a non-existent view also fails with an error unless the `IF EXISTS` modifier is specified.

## Availability

`DROP VIEW` is available starting from language version [2025.05](https://e2e.viewer-test.ydocs.io/en/yql/changelog/2025.05.md).

## Examples

```yql
DROP VIEW `//path/to/view1`; -- drops the view on the current cluster
DROP VIEW IF EXISTS cluster.`//path/to/view2`; -- explicit cluster specification, completes without error if `//path/to/view2` does not exist
```

## See also

* [CREATE VIEW](https://e2e.viewer-test.ydocs.io/en/yql/syntax/create_view.md)

