# DROP VIEW

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [cloud-data-platform-full.txt](https://docs.redpanda.com/cloud-data-platform-full.txt)

---
title: DROP VIEW
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.117.0
latest-redpanda-tag: v26.2.6
docname: sql/sql-statements/drop-view
page-component-name: cloud-data-platform
page-version: master
page-component-version: master
page-component-title: Cloud
page-relative-src-path: sql/sql-statements/drop-view.adoc
page-edit-url: https://github.com/redpanda-data/cloud-docs/edit/main/modules/reference/pages/sql/sql-statements/drop-view.adoc
description: The DROP VIEW statement removes a view.
page-topic-type: reference
page-git-created-date: "2026-10-20"
page-git-modified-date: "2026-10-20"
page-generated-content: none
---

<!-- Source: https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-statements/drop-view.md -->

The `DROP VIEW` statement removes a view. A view stores no data, so `DROP VIEW` removes only the view’s definition. The tables that the view reads do not change.

## [](#syntax)Syntax

```sql
DROP VIEW [IF EXISTS] [schema_name.]view_name;
```

-   `IF EXISTS`: Optional. Prevents an error if the view does not exist.

-   `schema_name`: Optional. The Redpanda SQL schema that contains the view.

-   `view_name`: Name of the view to remove. Each `DROP VIEW` statement removes one view.


## [](#behavior)Behavior

-   You cannot drop a view while another view reads it. The statement fails with `cannot drop view <view-name> because other objects depend on it.` Drop the dependent view first.

-   The `DROP VIEW` statement has no `CASCADE` or `RESTRICT` option.

-   To drop a table, use [DROP TABLE](https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-statements/drop-table/) instead.


## [](#permissions)Permissions

Only the owner of the view or a superuser can drop it. Other users get `permission denied: must be owner of table <view-name>`.

## [](#examples)Examples

Remove a view:

```sql
DROP VIEW large_orders;
```

Remove a view only if it exists:

```sql
DROP VIEW IF EXISTS large_orders;
```

Remove a view and the view that reads it. Drop the dependent view first:

```sql
DROP VIEW top_customers;
DROP VIEW large_orders;
```

## [](#suggested-reading)Suggested reading

-   [CREATE VIEW](https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-statements/create-view/)

-   [Tables and Views](https://docs.redpanda.com/cloud-data-platform/sql/query-data/tables-and-views/)

-   [pg\_views](https://docs.redpanda.com/cloud-data-platform/reference/sql/system-catalogs/catalogs/pg_views/)