db.droptable1grass
Drops an attribute table.
Usage
db.droptable
db.droptable --help
db.droptable [-f]
[driver=name]
[database=name]
table=name
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
database, attribute table
Overview
db.droptable drops an attribute table. If the -f force flag is not given then nothing is removed, instead a preview of the action to be taken is printed.
Notes
db.droptable is a front-end to db.execute to allow easier usage. To some extent it is verified if the table is connected to a vector map to avoid accidental table removal.
Examples
Removing an attribute table from default database
# show default databasedb.connect -p# show available tablesdb.tables -p# this will show what would happendb.droptable table=sometable# actually drop the tabledb.droptable -f table=sometable
Removing an attribute table from given database
db.droptable allows defining optionally driver and database options different from default connection settings (db.connect -p).
# drop the table from SQLite databasedb.droptable -f table=sometable driver=sqlite database=/opt/sqlite.db
Source code
Available at: db.droptable source code (history)
Accessed: Monday Feb 24 17:51: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
Releases
9 releases since Debian 5.0 (Lenny); the text changed 8 times.