For AI agents: the complete documentation index is at llms.txt. Every page is also available as markdown by appending .md to its URL, or by sending an Accept: text/markdown request header.

DROP MATERIALIZED VIEW

Permanently deletes a materialized view and all its data.

Syntax​

DROP MATERIALIZED VIEW [ IF EXISTS ] viewName

Parameters​

ParameterDescription
viewNameName of the materialized view to drop
IF EXISTSSuppress error if view doesn't exist

Examples​

Drop a materialized view
DROP MATERIALIZED VIEW trades_hourly;
Drop only if exists (no error if missing)
DROP MATERIALIZED VIEW IF EXISTS trades_hourly;

Behavior​

AspectDescription
PermanenceDeletion is permanent and not recoverable
Space reclamationDisk space is reclaimed asynchronously
Active queriesExisting read queries may delay space reclamation
Non-standard volumesView is logically removed; data remains in the volume
warning

This operation cannot be undone. The view and all its pre-computed data will be permanently deleted.

Permissions (Enterprise)​

Dropping a materialized view requires the DROP MATERIALIZED VIEW permission on the specific view:

Grant drop permission
GRANT DROP MATERIALIZED VIEW ON trades_hourly TO user1;

The view creator automatically receives this permission with the GRANT option.

Errors​

ErrorCause
materialized view does not existView doesn't exist and IF EXISTS not specified
permission deniedMissing DROP MATERIALIZED VIEW permission (Enterprise)

See also​