# wp-debugging/2.11.15/uninstall.php

WP Debugging, version 2.11.15. 33 lines.

- Page: https://pluginprobe.com/plugins/wp-debugging/2.11.15/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/wp-debugging/2.11.15/raw/uninstall.php
- Modified: 2019-02-06T20:15:54+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-debugging/2.11.15/code/uninstall.php#L10-L20`.

```php
<?php
/**
 * WP Debugging
 *
 * @package wp-debugging
 * @author Andy Fragen
 * @license MIT
 */

/**
 * Fired when the plugin is uninstalled.
 *
 * When populating this file, consider the following flow
 * of control:
 *
 * - This method should be static
 * - Check if the $_REQUEST content actually is the plugin name
 * - Run an admin referrer check to make sure it goes through authentication
 * - Verify the output of $_GET makes sense
 * - Repeat with other user roles. Best directly by using the links/query string parameters.
 * - Repeat things for multisite. Once for a single site in the network, once sitewide.
 */

// If uninstall not called from WordPress, then exit.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit;
}

delete_option( 'wp_debugging' );
delete_site_option( 'wp_debugging' );
delete_option( 'wp_debugging_restore' );
delete_site_option( 'wp_debugging_restore' );

```
