<?php
/**
 * Uninstall — removes plugin and Volade SDK data.
 *
 * @package PCC
 */

defined( 'WP_UNINSTALL_PLUGIN' ) || exit;

delete_option( 'pcc_settings' );
delete_option( 'pcc_scan_state' );
delete_option( 'pcc_last_scan' );
delete_option( 'pcc_false_positives' );
delete_option( 'pcc_scan_history' );
delete_option( 'pcc_activation_redirect' );

$volade_cleanup = dirname( __FILE__ ) . '/volade-sdk/uninstall-cleanup.php';
if ( is_readable( $volade_cleanup ) ) {
	require_once $volade_cleanup;
	volade_sdk_uninstall_cleanup();
}
