🛠️ This documentation is still under construction
Node.js API
Vacate (empty)

Vacate (empty) the database

The vacate method completely trunacates the database. This means that all tables will be irreversibly deleted.

⚠️
Be very careful with this method! This action can NOT be undone. Make sure your database is safely backed up before you use this.

Vacate requires you to provide the confirm prop with value true. This is a safety feature!

db.vacate();

Will result in an exception:

alphadb.utils.exceptions.NeedsConfirmation: Did you forget to set confirm to True? This is a safety feature!

So to actually execute the function, call it like this:

db.vacate({confirm: true});