# woo-mailerlite/3.1.27/uninstall.php

MailerLite – WooCommerce integration, version 3.1.27. 31 lines.

- Page: https://pluginprobe.com/plugins/woo-mailerlite/3.1.27/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/woo-mailerlite/3.1.27/raw/uninstall.php
- Modified: 2026-09-01T11:28:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woo-mailerlite/3.1.27/code/uninstall.php#L10-L20`.

```php
<?php
/**
 * Fired when the plugin is uninstalled (deleted), not merely deactivated.
 *
 * This is the only place that is allowed to destroy plugin data: it drops the
 * plugin tables and removes all stored options. Deactivation must preserve
 * settings and carts (see WooMailerLiteDeActivator).
 *
 * @package WooMailerlite
 */

// If uninstall is not called from WordPress, abort.
if (!defined('WP_UNINSTALL_PLUGIN')) {
    die;
}

// Load the autoloader and helpers (db(), migrations, options, cache) without
// booting the full plugin.
require_once __DIR__ . '/bootstrap.php';

// Stop any scheduled background jobs.
if (function_exists('as_unschedule_all_actions')) {
    as_unschedule_all_actions(WooMailerLiteCartCleanupJob::class);
}
WooMailerLiteCache::delete('cart_cleanup_scheduled');

// Drop plugin tables and remove all stored options.
WooMailerLiteMigration::rollback();
WooMailerLiteOptions::deleteAll();
delete_option('woo_mailerlite');

```
