query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", $wpdb->esc_like( '_transient_waref_forms_' ) . '%', $wpdb->esc_like( '_transient_timeout_waref_forms_' ) . '%' ) ); // The delivery queue. $waref_forms_table = $wpdb->prefix . 'waref_queue'; // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange -- uninstall. $wpdb->query( $wpdb->prepare( "DROP TABLE IF EXISTS %i", $waref_forms_table ) ); // WooCommerce order flags (_waref_forms_sent) are left on orders: they are harmless and removing them would touch every order. foreach ( array( 'waref_forms_process_queue', 'waref_forms_heartbeat', 'waref_forms_retry' ) as $waref_forms_hook ) { wp_unschedule_hook( $waref_forms_hook ); }