# sessions/2.3.1/includes/plugin/class-uninstaller.php

Sessions, version 2.3.1. 40 lines.

- Page: https://pluginprobe.com/plugins/sessions/2.3.1/code/includes/plugin/class-uninstaller.php
- Raw: https://pluginprobe.com/plugins/sessions/2.3.1/raw/includes/plugin/class-uninstaller.php
- Modified: 2020-03-24T11:34: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/sessions/2.3.1/code/includes/plugin/class-uninstaller.php#L10-L20`.

```php
<?php
/**
 * Plugin deletion handling.
 *
 * @package Plugin
 * @author  Pierre Lannoy <https://pierre.lannoy.fr/>.
 * @since   1.0.0
 */

namespace POSessions\Plugin;

use POSessions\System\Option;
use POSessions\System\User;
use POSessions\Plugin\Feature\Schema;

/**
 * Fired during plugin deletion.
 *
 * This class defines all code necessary to run during the plugin's deletion.
 *
 * @package Plugin
 * @author  Pierre Lannoy <https://pierre.lannoy.fr/>.
 * @since   1.0.0
 */
class Uninstaller {

	/**
	 * Delete the plugin.
	 *
	 * @since 1.0.0
	 */
	public static function uninstall() {
		Option::site_delete_all();
		User::delete_all_meta();
		$schema = new Schema();
		$schema->finalize();
	}

}

```
