logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

db.dropdb - Removes an existing database.

Authors

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

Description

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

Examples

Drop(delete)anexistingdatabaseconnectedthroughSQLitedriver
       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

   DropanexistingdatabaseconnectedthroughPostgreSQLdriver
       db.dropdb driver=pg database=grassdb

Keywords

       database, attribute table, SQL

Name

db.dropdb  - Removes an existing database.

See Also

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

       GRASS SQL interface

Source Code

       Available at: db.dropdb source code (history)

       Accessed: Friday Apr 04 01:18:43 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

GRASS 8.4.1                                                                                    db.dropdb(1grass)

Synopsis

db.dropdbdb.dropdb--helpdb.dropdbdriver=namedatabase=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: dbf,mysql,odbc,ogr,pg,sqlite
           Default: sqlitedatabase=name[required]
           Name of database

Todo

       Support other database drivers, too.

See Also