search: keywords: ['SQL', 'command', 'alter', 'class', 'ALTER CLASS']

Server Commands - DROP DATABASE

Drops a database

Syntax

DROP DATABASE <dbName> [if exists]
  • <dbName> the name of an existing db

Examples

  • drop an existing db:

    orientdb> DROP DATABASE foo
    
  • drop a db if it exists:

    orientdb> DROP DATABASE foo if exists