Skip to content

Instantly share code, notes, and snippets.

@kallookoo
Last active December 9, 2025 23:53
Show Gist options
  • Select an option

  • Save kallookoo/5a822e80aa48a0ccc6b9a8beab9dd2de to your computer and use it in GitHub Desktop.

Select an option

Save kallookoo/5a822e80aa48a0ccc6b9a8beab9dd2de to your computer and use it in GitHub Desktop.
Clean the WooCommerce actions using SQL Commands.
DELETE a.*, l.* FROM `wp_actionscheduler_actions` AS a
INNER JOIN wp_actionscheduler_logs AS l ON (a.action_id = l.action_id)
WHERE a.status IN('canceled', 'failed', 'complete');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment