<?php
/**
 * Fired when the plugin is uninstalled.
 *
 * @link       https://personalizewp.com
 * @since      1.0.0
 *
 * @package    PersonalizeWP
 */

namespace PersonalizeWP;

// If uninstall not called from WordPress, then exit.
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;

// Skip the autoloader, manually include what is needed for the DB Manager
require __DIR__ . '/includes/traits/class-singletontrait.php';
require __DIR__ . '/includes/class-db-manager.php';
require __DIR__ . '/includes/class-geo-database-manager.php';

DB_Manager::uninstall();
Geo_Database_Manager::instance()->delete_database();
