db.dropdb(1grass)
π db.dropdb β the girlies' guide to yeeting a whole database π
okay so bestie, quick vibe check: this is db.dropdb, and it lives in the GRASS User's Manual. it's giving "one job, does it well" energy. no cap.
β¨ NAME β¨
db.dropdb β removes an existing database. that's it. that's the whole thing. she's simple, she's iconic, she does exactly what her name says and nothing more π
πΈ KEYWORDS πΈ
database, attribute table, SQL
π SYNOPSIS π
db.dropdb
db.dropdb --help
db.dropdb driver=name database=name [--help] [--verbose] [--quiet]
[--ui]
β Flags β
--helpβ prints the usage summary, aka the little map that tells you where you are π--verboseβ verbose module output. she talks more. we love a chatty queen π£οΈ--quietβ quiet module output. she says less. shhh π€«--uiβ forces the GUI dialog to launch, for when you want to click things with your mouse instead of typing π±οΈβ¨
π Parameters π
driver=name[required] β the name of the database driver, i.e. which flavor of database we're dealing with. Options:dbf,mysql,odbc,ogr,pg,sqliteDefault:sqlitedatabase=name[required] β the name of the database. yes bestie, you have to actually tell her which one πΈ
π DESCRIPTION π
db.dropdb removes an existing database using the database driver you give her. currently only the SQLite and PostgreSQL database drivers are supported. so if you came here with mysql, dbf, odbc, or ogr... not today, babe π (see the TODO section, she's aware).
π¦ EXAMPLES π¦
π Drop (delete) an existing database connected through SQLite driver
not me reminding you that the standard GRASS SQLite database is, by default, found in the user's current mapset. periodt. so this example is showing you an out-of-mapset database removal, because sometimes you gotta go outside your mapset to delete things:
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. she's working on it, manifesting it, the glow-up is coming β¨
π§ SEE ALSO π§
db.createdbdb.describedb.droptabledb.executedb.logindb.tables
also: GRASS SQL interface β iykyk π«Ά
π AUTHORS π
- Radim Blazek, ITC-Irst, Trento, Italy
- SQLite and PostgreSQL support by Martin Landa, Czech Technical University in Prague, Czech Republic
π₯ SOURCE CODE π₯
Available at: db.dropdb source code (history)
Latest change: Friday Aug 08 09:39:19 2025 in commit: ed72c71d8580e872cd6fd345c84a15c324764465
Main index | Database index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
no cap bestie, that's the whole page. go forth and drop that database responsibly π (she removes things permanently, so... maybe double-check the name first? just saying π)
okay byeee, this was GRASS 8.5.0 sending you off with db.dropdb(1grass) β stay slay, stay backed-up ππ
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms