All Products
Search
Document Center

MaxCompute:DROP MATERIALIZED VIEW

Last Updated:Mar 26, 2026

Permanently removes a materialized view from a MaxCompute project.

Syntax

DROP MATERIALIZED VIEW [IF EXISTS] [<project_name>.]<mv_name>;

Parameters

ParameterRequiredDescription
IF EXISTSNoSuppresses the error if the materialized view does not exist. The statement completes silently without returning an error. Without this clause, the statement fails when the target view is not found.
project_nameNoThe name of the MaxCompute project that contains the materialized view. Defaults to the current project. To find your project name, log on to the MaxCompute console, select a region in the top navigation bar, and check the Project management tab.
mv_nameYesThe name of the materialized view to drop.

Examples

Drop a materialized view named mv:

DROP MATERIALIZED VIEW mv;

Drop a materialized view only if it exists:

DROP MATERIALIZED VIEW IF EXISTS mv;

What's next