db.dropdb.1grass man page

db.dropdb — Removes an existing database.

Keywords

database, attribute table, SQL

Synopsis

db.dropdb
db.dropdb --help
db.dropdb driver=name database=name [--help] [--verbose] [--quiet] [--ui]

Flags

--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters

driver=name [required]
Name of database driver
Options: mesql, pg, dbf, sqlite, odbc, ogr, mysql
Default: sqlite
database=name [required]
Name of database

Description

db.dropdb removes an existing database using given database driver. Currently only SQLite and PostgreSQL database drivers are supported.

Examples

Drop (delete) an existing database connected through SQLite driver

Note that the standard GRASS GIS SQLite database is by default found in the user’s current mapset. This example shows an out-of-mapset database removal:

db.dropdb driver=sqlite database=/opt/sqlite.db

Drop an existing database connected through PostgreSQL driver

db.dropdb driver=pg database=grassdb

Todo

Support other database drivers, too.

See Also

db.createdb, db.describe, db.droptable, db.execute, db.login, db.tables

GRASS SQL interface

Authors

Radim Blazek, ITC-Irst, Trento, Italy
SQLite and PostgreSQL support by Martin Landa, Czech Technical University in Prague, Czech Republic

Last changed: $Date: 2014-12-07 23:24:06 +0100 (Sun, 07 Dec 2014) $

Main index | Database index | Topics index | Keywords index | Full index

© 2003-2016 GRASS Development Team, GRASS GIS 7.0.4 Reference Manual

Info

GRASS 7.0.4 Grass User's Manual