Skip to main content
Since 1.3.0 views can be dropped using the DROP MATERIALIZED VIEW statement. This statement deletes the and all its internal objects. It also removes refresh policies for that aggregate. To delete other dependent objects, such as a view defined on the , add the CASCADE option. Dropping a does not affect the data in the underlying from which the is derived.

Samples

Drop existing .

Arguments

The syntax is:

Returns

For standard DROP MATERIALIZED VIEW return behavior, see the PostgreSQL DROP MATERIALIZED VIEW documentation.