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, sqlite Default: sqlite
  • database=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.createdb
  • db.describe
  • db.droptable
  • db.execute
  • db.login
  • db.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