-
Notifications
You must be signed in to change notification settings - Fork 10
delete
Sébastien Andreatta edited this page Apr 27, 2026
·
2 revisions

Remove a local PostgreSQL database and its associated resources. If no database is provided, prune all databases that are not whitelisted.
odev delete [-v {CRITICAL,ERROR,WARNING,INFO,DEBUG,DEBUG_SQL,NOTSET}] [-h] [-f] [-k KEEP] [-e EXPRESSION] [-w] [database]remove, rm
| Argument | Description |
|---|---|
database |
The database to target. |
| Argument | Description |
|---|---|
-v, --log-level |
Set logging verbosity for the execution of odev. |
-h, --help |
Show help for the current command. |
-f, --force |
Bypass confirmation prompts and assume a default value to all, use with caution! |
-k, --keep |
List of associated resources to keep, separated by commas. Possible values are: - filestore: keep the database filestore - venv: keep the virtual environment associated to the database - config: keep saved attributes for the database (i.e. whitelist, saved arguments,...) |
-e, --expression |
Regular expression pattern to filter databases to delete. Ignored if a database was provided. |
-w, --include-whitelisted |
Delete whitelisted databases as well. |
odev delete --helpodev delete demo_19odev delete -e "test_.*"odev delete -e "demo_.*" -w