typedb-driver icon indicating copy to clipboard operation
typedb-driver copied to clipboard

Database clean commands

Open jamesreprise opened this issue 2 years ago • 0 comments

Problem to Solve

Previously, we've had functions to clean the database via the Console. From the docs:

Cleaning a Database

Cleaning the database, not to be confused with deletion, wipes out both the data and the schema contained within the database. We can clean a database via TypeDB Console.

We don't support this currently.

Current Workaround

To clean the database, define an empty schema and delete all data via queries. To clean the data from a database, delete all data via a query.

Proposed Solution

Provide a function on Database that automatically performs the cleaning functions.

jamesreprise avatar Nov 22 '22 10:11 jamesreprise