> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# DROP SEMANTIC VIEW

> Drop a semantic view and remove its metadata from the catalog.

## Description

Drops an existing semantic view. All metadata associated with the view is
deleted from the catalog. Because semantic views hold no physical data, dropping
a semantic view only removes the metadata; no base-table data is affected.

## Syntax

```SQL theme={null}
DROP SEMANTIC VIEW [IF EXISTS] [<db>.]<view_name>
```

## Parameters

| Parameter | Required | Description |
| - | - | - |
| `IF EXISTS` | No | Suppresses an error when the semantic view does not exist. |
| `db` | No | Database containing the semantic view. Defaults to the current database. |
| `view_name` | Yes | Name of the semantic view to drop. |

## Examples

```SQL theme={null}
-- Drop a semantic view; error if it does not exist
DROP SEMANTIC VIEW order_metrics;

-- Drop without error if it does not exist
DROP SEMANTIC VIEW IF EXISTS sales_db.order_metrics;
```

## See also

* [CREATE SEMANTIC VIEW](/documents/4.2/sql-reference/sql-statements/semantic-view/CREATE_SEMANTIC_VIEW.md)
* [SHOW SEMANTIC VIEWS](/documents/4.2/sql-reference/sql-statements/semantic-view/SHOW_SEMANTIC_VIEWS.md)
* [Semantic views](/documents/4.2/using_starrocks/semantic_view.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.