The database command
gallery.js database remove
Remove entries by given query
Options:
--version Show version number [boolean]
--full-version Show full build version [boolean]
-l, --log-level Console log level
[string] [choices: "trace", "debug", "info", "warn", "error", "silent"]
-J, --log-json-format Log output format in json [boolean]
-L, --log-file Log file
--log-file-level Log file level
[string] [choices: "trace", "debug", "info", "warn", "error"] [default: "debug
"]
-c, -c, --config Configuration file
--auto-config Search for configuration on common configuration direct
ories [boolean] [default: true]
-d, --database Database filename
-e, --events Events filename
-q, --query Query to remove from the database [string] [required]
-k, --keep, --inverse Keep matching entries instead of removing it [boolean]
-n, --dry-run Do not perform any writes
-h, --help Show help [boolean]
--level [default: debug]
Examples:
gallery.js database remove -q tag:trashe Remove all entries with tag "trashed
d "
gallery.js database remove -k -q tag:goo Keep all entries with tag "good"
d