drop_db
Drops a stopped database. The effects this command has on your data differs slightly between database modes:
Drops a stopped database. The effects this command has on your data differs slightly between database modes:
- Enterprise: Deletes the database data (including catalog, data, and depot directories) from all nodes.
- Eon: Deletes non-communal storage data. Dropped Eon Mode databases can be revived.
The data deleted by this operation cannot be recovered.
Syntax
vcluster drop_db [options]
Required options
{ -c | --config }string- The path to the config file. If a configuration file is present in the default location (automatically generated by
create_db), you do not need to specify this option.Default:
/opt/vertica/config/vertica_cluster.yaml
Options
--cert-filestring- The absolute path to the certificate file. If you specify this option, you must also specify
--key-file. You should only use--cert-fileand--key-fileif you have configured the Node Management Agent (NMA) to use custom certificates.
{ -h | --help }- Prints help text.
--ipv6- Whether the hosts use IPv6 addresses. Hostnames resolve to IPv4 by default.
--key-filestring- Path to the key file. If you specify this option, you must also specify
--cert-file. You should only use--cert-fileand--key-fileif you have configured the Node Management Agent (NMA) to use custom certificates.
{ -l | --log-path }string- The absolute path for debug logs.
Default:
/opt/vertica/log/vcluster.log
--verbose- Shows the details of VCluster run in the console.
Examples
To drop a database:
$ vcluster drop_db --db-name test_db