watchdog:delete¶
Delete watchdog log records.
Examples¶
drush watchdog:delete all
. Delete all messages.drush watchdog:delete 64
. Delete messages with id 64.drush watchdog:delete "cron run succesful"
. Delete messages containing the string "cron run succesful".drush watchdog:delete --severity=Notice
. Delete all messages with a severity of notice.drush watchdog:delete --type=cron
. Delete all messages of type cron.
Arguments¶
- [substring]. Delete all log records with this text in the messages.
Options¶
- --severity=SEVERITY. Delete messages of a given severity level.
- --type=TYPE. Delete messages of a given type.
Global Options¶
- -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
- -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
- To see all global options, run
drush topic
and pick the first choice.
Aliases¶
- wd-del
- wd-delete
- wd
- watchdog-delete
Legend
- An argument or option with square brackets is optional.
- Any default value is listed at end of arg/option description.
- An ellipsis indicates that an argument accepts multiple values separated by a space.