db.dropdb1grass
Removes an existing database.
Usage
db.dropdb
db.dropdb --help
db.dropdb driver=name
database=name
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
database, attribute table, SQL
Overview
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.
Source code
Available at: db.dropdb source code (history)
Accessed: Monday Feb 24 17:50:22 2025
Main index | Database index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.