db.dropdb(1grass)

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.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Authors

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

From grass-doc 8.4.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.