How to clean up WooCommerce Action Scheduler with PHP

Action Scheduler can be accessed via “WooCommerce > Status > Scheduled Actions”. Manual cleanup Delete canceled, failed, and completed actions Empty Action Scheduler logs Automatic cleanup Reduce retention period Include failed actions Increase batch size