Skip to content

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.

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.