Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created March 11, 2026 22:06
Show Gist options
  • Select an option

  • Save lukecav/76e16b7c18a6f6c17bd6dfd30f018d2a to your computer and use it in GitHub Desktop.

Select an option

Save lukecav/76e16b7c18a6f6c17bd6dfd30f018d2a to your computer and use it in GitHub Desktop.
Delete all specific prefix based cron events via WP-CLI
wp cron event list --fields=hook --format=csv \
| tail -n +2 \
| grep -E '^(stellarwp|nexcess)' \
| sort -u \
| while IFS= read -r hook; do
wp cron event delete "$hook"
done

Comments are disabled for this gist.