Skip to content

Instantly share code, notes, and snippets.

@jrick1229
Created August 11, 2021 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrick1229/98aeda43776bb51ae8ba44dd98cffdaa to your computer and use it in GitHub Desktop.
Save jrick1229/98aeda43776bb51ae8ba44dd98cffdaa to your computer and use it in GitHub Desktop.
Bulk delete scheduled actions based on status
DELETE FROM `wp_actionscheduler_actions`
WHERE `status` = 'complete'
DELETE FROM `wp_actionscheduler_actions`
WHERE `status` = 'failed'
DELETE FROM `wp_actionscheduler_actions`
WHERE `status` = 'pending'
DELETE FROM `wp_actionscheduler_actions`
WHERE `status` = 'canceled'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment