db.dropdb(1)

πŸ’… db.dropdb β€” the GRASS GIS User's Manual page, but make it make sense

okay bestie, welcome to db.dropdb(1), straight out of the GRASS GIS User's Manual (yes, manual section 1, we're fancy). This is the little tool that ✨ yeets a whole database out of existence ✨. Buckle up.


🌸 NAME 🌸

db.dropdb β€” Removes an existing database. πŸ’€ that's it. that's the whole job.


πŸŽ€ KEYWORDS πŸŽ€

database, attribute table, SQL


✨ SYNOPSIS ✨

db.dropdb
db.dropdb --help
db.dropdb driver=name database=name  [--help]  [--verbose]  [--quiet]
[--ui]

πŸ¦‹ Flags:

  • --help β€” Print usage summary. (the "what do i even do here" button 🫢)
  • --verbose β€” Verbose module output. (it will tell you everything, main character energy)
  • --quiet β€” Quiet module output. (shhh. no thoughts, just vibes 🀫)
  • --ui β€” Force launching GUI dialog. (for the girlies who like buttons instead of typing πŸ’…)

πŸ“ Parameters:

  • driver=name [required] β€” Name of database driver.
    • Options: dbf, mesql, mysql, odbc, ogr, pg, sqlite
    • Default: sqlite
  • database=name [required] β€” Name of database. (the thing you're about to send to the shadow realm πŸ•³οΈ)

πŸ’– DESCRIPTION πŸ’–

so db.dropdb removes an existing database using given database driver. like, it's giving "delete but make it database". periodt.

⚠️ rn only SQLite and PostgreSQL database drivers are supported. the others are just standing there, looking pretty. no cap.

🌈 EXAMPLES 🌈

Drop (delete) an existing database connected through SQLite driver

ngl bestie, important lore here: 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

like it's literally living outside the mapset and we're still coming for it. iconic.

Drop an existing database connected through PostgreSQL driver

db.dropdb driver=pg database=grassdb

she's gone. bye girl πŸ’œ


πŸ™ˆ TODO πŸ™ˆ

Support other database drivers, too. (the to-do list is to-doing, we'll get there ✨)


πŸ‘‘ SEE ALSO πŸ‘‘

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

GRASS SQL interface


🧚 AUTHORS 🧚

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

we stan.


⭐ SOURCE CODE ⭐

Available at: db.dropdb source code (history)

Accessed: Saturday Jan 17 05:40:33 2026

Main index | Database index | Topics index | Keywords index | Graphical index | Full index


Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual

okay that's the whole page, mwah πŸ’‹ this was GRASS 8.4.2 doing its thing for db.dropdb(1) β€” go forth and drop responsibly, bestie, and remember: dropping a database is forever, so double check before you hit enter. slay 🫢🌈

πŸ“¦ where this page comes from