Skip to main content
Before you can remove a database, you must use DROP SCHEMA to remove all its dependent schemas.
DROP DATABASE removes all data in a database and cannot be undone.

Syntax

Parameters

Examples

This statement removes the rw_db database which contains two schemas, rw_schema and public (default schema):
Use this statement if you don’t want RisingWave to return an error if the database you want to remove does not exist: