# DROP QUERY POLICY
`DROP QUERY POLICY` removes a query policy from Materialize.

> For the complete documentation index, see [llms.txt](https://materialize.com/docs/llms.txt).




`DROP QUERY POLICY` removes a [query policy](https://materialize.com/docs/markdown-docs/clusters/query-policies/index.md) from
Materialize.

## Syntax

```mzsql
DROP QUERY POLICY [IF EXISTS] <name> [, ...] [CASCADE | RESTRICT];
```

Syntax element | Description
---------------|------------
**IF EXISTS** | Optional. If specified, do not return an error if the specified query policy does not exist.
`<name>` | The query policy to drop. For available query policies, see [`SHOW QUERY POLICIES`](https://materialize.com/docs/markdown-docs/sql/show-query-policies/index.md).
**CASCADE** | Optional. If specified, detach the query policy from all clusters, then drop it. The clusters are not dropped.
**RESTRICT** | Optional. Do not drop the query policy if it is attached to a cluster. _(Default.)_

## Privileges

The privileges required to execute this statement are:

- Ownership of the query policy.

## Examples

```mzsql
DROP QUERY POLICY indexed_reads_only CASCADE;
```

## Related pages

- [Query policies](https://materialize.com/docs/markdown-docs/clusters/query-policies/index.md)
- [`CREATE QUERY POLICY`](https://materialize.com/docs/markdown-docs/sql/create-query-policy/index.md)
- [`ALTER QUERY POLICY`](https://materialize.com/docs/markdown-docs/sql/alter-query-policy/index.md)
- [`SHOW QUERY POLICIES`](https://materialize.com/docs/markdown-docs/sql/show-query-policies/index.md)
