Officially out now: The TypeDB 3.0 Roadmap >>

Deleting databases

To delete a database, connect to TypeDB and follow the steps below:

  • Console

  • Studio

Run the following command:

database delete social_network

Where social_network is the name of the database.

Coming soon.

To delete a database programmatically:

  • Rust

  • Python

  • Java

  • Node.js

  • C#

  • C++

  • C

let database = driver.databases().get("social_network").await?;
let result = database.delete().await;

Where driver is an instance of a driver, connected to TypeDB, and "social_network" is the name of the database.

driver.databases.get("social_network").delete()

Where driver is an instance of a driver, connected to TypeDB, and "social_network" is the name of the database.

driver.databases().get("social_network").delete();

Where driver is an instance of a driver, connected to TypeDB, and "social_network" is the name of the database.

Coming soon.