DROP VIEW SQL - Language Statements DROP VIEW Removes an existing view from a database 1999-07-20 DROP VIEW name [, ...] 1998-09-22 Inputs name The name of an existing view. 1998-09-22 Outputs DROP The message returned if the command is successful. ERROR: view name is nonexistent This message occurs if the specified view does not exist in the database. 1998-09-22 Description DROP VIEW drops an existing view from the database. To execute this command you must be the owner of the view. 1998-09-22 Notes The Postgres DROP TABLE statement also drops views. Refer to CREATE VIEW for information on how to create views. Usage This command will remove the view called kinds: DROP VIEW kinds; Compatibility 1998-09-22 SQL92 SQL92 specifies some additional capabilities for DROP VIEW: DROP VIEW view { RESTRICT | CASCADE } 1998-09-22 Inputs RESTRICT Ensures that only a view with no dependent views or integrity constraints can be destroyed. CASCADE Any referencing views and integrity constraints will be dropped as well. 1998-09-22 Notes At present, to remove a referenced view from a Postgres database, you must drop it explicitly.