function sixscan_events_deactivation()
{
    if (sixscan_common_is_account_active() == TRUE) {
        sixscan_communication_oracle_reg_deactivate(sixscan_common_get_site_id(), sixscan_common_get_api_token());
        /*	"Not active" , this will disallow scanner to work on this host */
        sixscan_common_set_account_active(FALSE);
    }
    /* Revert the .htaccess to "pre-6scan" state */
    sixscan_htaccess_uninstall();
}
function sixscan_installation_uninstall()
{
    try {
        /*	Notify the server, to disable account */
        sixscan_communication_oracle_reg_uninstall(sixscan_common_get_site_id(), sixscan_common_get_api_token());
        /*	Remove verification file, if exists */
        sixscan_communication_oracle_reg_remove_verification_file();
        /* Remove lines from htaccess */
        sixscan_htaccess_uninstall();
        /* Clear the database */
        delete_option(SIXSCAN_OPTIONS_SETUP_ACCOUNT);
        delete_option(SIXSCAN_OPTION_MENU_IS_BLOG_VERIFIED);
        delete_option(SIXSCAN_OPTION_MENU_SITE_ID);
        delete_option(SIXSCAN_OPTION_MENU_API_TOKEN);
        delete_option(SIXSCAN_OPTION_MENU_VERIFICATION_TOKEN);
        delete_option(SIXSCAN_OPTION_MENU_DASHBOARD_TOKEN);
        delete_option(SIXSCAN_OPTION_MENU_IS_ACCOUNT_OPERATIONAL);
        delete_option(SIXSCAN_OPTION_COMM_ORACLE_NONCE);
        delete_option(SIXSCAN_OPTION_COMM_LAST_SIG_UPDATE_NONCE);
        delete_option(SIXSCAN_OPTION_VULNERABITILY_COUNT);
        delete_option(SIXSCAN_OPTION_LOGIN_SETTINGS);
        delete_option(SIXSCAN_LOGIN_LOGS);
        delete_option(SIXSCAN_OPTION_WPFS_CONFIG);
        delete_option(SIXSCAN_OPTION_WAF_REQUESTED);
        delete_option(SIXSCAN_OPTION_STAT_SUSPICIOUS_REQ_COUNT);
        delete_option(SIXSCAN_OPTION_STAT_OK_REQ_COUNT);
        delete_option(SIXSCAN_BACKUP_LAST_FS_NAME);
        delete_option(SIXSCAN_BACKUP_LAST_DB_NAME);
        delete_option(SIXSCAN_VULN_MESSAGE_DISMISSED);
    } catch (Exception $e) {
        die($e);
    }
}