### 13.1.35 DROP VIEW Statement

[]()

```
DROP VIEW [IF EXISTS]
    view_name [, view_name] ...
    [RESTRICT | CASCADE]
```

[`DROP VIEW`](drop-view.html) removes one or more views. You must have the [`DROP`](privileges-provided.html#priv_drop) privilege for each view.

 If any views named in the argument list do not exist, the statement fails with an error indicating by name which nonexisting views it was unable to drop, and no changes are made.

Note

 In MySQL 5.7 and earlier, [`DROP VIEW`](drop-view.html) returns an error if any views named in the argument list do not exist, but also drops all views in the list that do exist. Due to the change in behavior in MySQL 8.0, a partially completed [`DROP VIEW`](drop-view.html) operation on a MySQL 5.7 replication source server fails when replicated on a MySQL 8.0 replica. To avoid this failure scenario, use `IF EXISTS` syntax in [`DROP VIEW`](drop-view.html) statements to prevent an error from occurring for views that do not exist. For more information, see [Section 13.1.1, “Atomic Data Definition Statement Support”](atomic-ddl.html).

 The `IF EXISTS` clause prevents an error from occurring for views that don't exist. When this clause is given, a `NOTE` is generated for each nonexistent view. See [Section 13.7.7.42, “SHOW WARNINGS Statement”](show-warnings.html).

`RESTRICT` and `CASCADE`, if given, are parsed and ignored.

