# wpstream/4.11.1/includes/class-wpstream-deactivator.php

WpStream – Live Streaming, Video on Demand, Pay Per View, version 4.11.1. 45 lines.

- Page: https://pluginprobe.com/plugins/wpstream/4.11.1/code/includes/class-wpstream-deactivator.php
- Raw: https://pluginprobe.com/plugins/wpstream/4.11.1/raw/includes/class-wpstream-deactivator.php
- Modified: 2022-11-21T11:00:10+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/wpstream/4.11.1/code/includes/class-wpstream-deactivator.php#L10-L20`.

```php
<?php

/**
 * Fired during plugin deactivation
 *
 * @link       http://wpstream.net
 * @since      3.0.1
 *
 * @package    Wpstream
 * @subpackage Wpstream/includes
 */

/**
 * Fired during plugin deactivation.
 *
 * This class defines all code necessary to run during the plugin's deactivation.
 *
 * @since      3.0.1
 * @package    Wpstream
 * @subpackage Wpstream/includes
 * @author     wpstream <office@wpstream.net>
 */
class Wpstream_Deactivator {

	/**
	 * Short Description. (use period)
	 *
	 * Long Description.
	 *
	 * @since    3.0.1
	 */
	public static function deactivate() {
            delete_option('wp_estate_token_expire');
            delete_option('wp_estate_curent_token');
            delete_option('wpstream_api_key');
            delete_option('wpstream_api_secret_key');
            delete_option('wpstream_api_username');
            delete_option('wpstream_api_password');
			delete_transient( 'wpstream_token_api');
			delete_transient('wpstream_token_request_30');
            flush_rewrite_rules();
	}

}

```
