delete-database

Delete a child database.

Syntax

fauna delete-database DBNAME [OPTIONS]

Description

The delete-database command deletes a child database.

If command line options are omitted, Fauna uses the default configuration file options.

This command deletes the database and all of its contents.

It isn’t possible to use this command to delete a parent or peer database. To delete a database outside of the current database, log into the Fauna Dashboard.

Arguments

Argument Description

DBNAME

The name of the database to delete.

Options

Option Description

--domain=<domain>

(Optional) Fauna server domain, which is the Fauna hostname.
Default = db.fauna.com

--endpoint=<name>

(Optional) Endpoint name to use for the command.

--port=<number>

(Optional) Connection port.
Default = 8443

--scheme=<scheme>

(Optional) Connection scheme. Must be one of:
       https (default)
       http

--secret=<secret>

(Optional) Secret to use to connect to a database.

--timeout=<integer>

(Optional) connection timeout, in milliseconds. When the interval elapses, fauna-shell times out and displays an error.
Default = 5 seconds

Examples

Assume that the current database has only one child database, my-test-db. To delete it, run:

fauna delete-database my-test-db
deleting database 'my-test-db'
database 'my-test-db' deleted

Verify the database is deleted:

fauna list-databases
listing databases

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!