Data Loss Warning: This operation permanently deletes all data in the database.

Syntax

r.dbDrop(name) → result

Arguments

List of arguments to provide.
name
string
required
Name of the database to drop. See notes for restrictions.

Optargs

No optional arguments.

Returns

result
object
Information about the operation.

Behavior

  • When the database is dropped, all tables associated with the database are also dropped.

Notes & Caveats

  • The database name must not be a reserved database name. The following names are reserved: __system__.

Example

Dropping a Database

Drop a database called test.
await r.dbDrop('test').run(client);
  • r - Referencing the query builder
  • db - Referencing a database
  • dbCreate - Creating a database
  • dbList - Listing databases

Found a typo? Or maybe a broken link? RuloDB is open-source, help us fix it!