<?php
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit;
}

delete_option( 'flexilay_woo_settings' );

$flexilay_hooks = array(
	'flexilay_woo_sync_plans',
);

foreach ( $flexilay_hooks as $flexilay_hook ) {
	$flexilay_ts = wp_next_scheduled( $flexilay_hook );
	while ( $flexilay_ts ) {
		wp_unschedule_event( $flexilay_ts, $flexilay_hook );
		$flexilay_ts = wp_next_scheduled( $flexilay_hook );
	}
}