Skip to manual
gluon

CLI reference

gluon dev-db drop

Drop (FORCE) each database, if it exists.

Model author or developer

Usage

Run it as gluon dev-db drop (in the repository, cargo run -p gluon-cli -- dev-db drop).

Console / text
Drop (FORCE) each database, if it exists

Usage: gluon dev-db drop [URLS]...

Arguments:
  [URLS]...

Options:
  -h, --help  Print help

What it reads and writes

It drops each database you name, with FORCE, if it exists: the URLs given, else GLUON_DATABASE_URL and GLUON_AUDIT_DATABASE_URL. It refuses the dev and system databases, so it only removes scratch databases such as the ones the test gates and manual captures make.

Before you run it

Every connection to the database is closed and its data is gone. Name the URLs yourself when in doubt.