<?php
// If uninstall not called from WordPress, exit
if (!defined('WP_UNINSTALL_PLUGIN')) {
    exit;
}

// Delete plugin options
delete_option('eveai_chat_settings');

// Clean up any additional options or data that your plugin may have created
// For example, if you've created any custom tables, you might want to drop them here

// If using multisite, you might want to loop through all sites
if (is_multisite()) {
    global $wpdb;
    $blog_ids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
    foreach ($blog_ids as $blog_id) {
        switch_to_blog($blog_id);
        delete_option('eveai_chat_settings');
        restore_current_blog();
    }
}