# wp-disable/2.2.0/uninstall.php

Featherweight, version 2.2.0. 16 lines.

- Page: https://pluginprobe.com/plugins/wp-disable/2.2.0/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/wp-disable/2.2.0/raw/uninstall.php
- Modified: 2026-06-08T10:16:08+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/wp-disable/2.2.0/code/uninstall.php#L10-L20`.

```php
<?php
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { exit; }
require_once 'lib/class-wpperformance.php';
WpPerformance::delete_options();
WpPerformance::delete_transients();
WpPerformance::unschedule_spam_comments_delete();

// Clean up legacy add-on download-link transients from the pre-Folium era
// (the cross-plugin installer that set these was removed in 2.2.0).
foreach ( array( 'wp-disable', 'cache-performance', 'wp-image-compression' ) as $legacy_slug ) {
	delete_transient( 'optimisaitionio_addon_download_link[' . $legacy_slug . ']' );
}

// Clean up the legacy Universal Analytics offload cron + transient, if present.
wp_clear_scheduled_hook( 'update_local_ga' );
delete_transient( 'wpperformance_ds_tracking_id' );
```
