Syntax
Parameters
Examples
This statement removes therw_db database which contains two schemas, rw_schema and public (default schema):
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use the DROP DATABASE command to remove a database from your RisingWave instance.
DROP DATABASE removes all data in a database and cannot be undone.DROP DATABASE [ IF EXISTS ] database_name;
| Parameter or clause | Description |
|---|---|
| IF EXISTS clause | Do not return an error if the specified database does not exist. |
| database_name | The name of the database you want to remove. You can use SHOW DATABASES to get a list of all available databases. |
rw_db database which contains two schemas, rw_schema and public (default schema):
DROP SCHEMA rw_db.rw_schema;
DROP SCHEMA rw_db.public;
DROP DATABASE rw_db;
DROP DATABASE IF EXISTS rw_db;
Was this page helpful?