You are viewing an older version of this section. View current production version.
Drop the specified database.
DROP DATABASE [IF EXISTS] db_name [FORCE] DROP SCHEMA [IF EXISTS] db_name [FORCE]
db_nameis the name of a SingleStore DB database.
- This command must be run on the master aggregator node (see Node Requirements for SingleStore DB Commands).
- By default, the
DROP DATABASEcommand waits for the running queries to finish before dropping the database. To override this behavior and kill any running queries, use the
DROP DATABASE IF EXISTS test;
DROP DATABASE IF EXISTS db FORCE;