# content-control/trunk/uninstall.php

Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks &amp; More, version trunk. 33 lines.

- Page: https://pluginprobe.com/plugins/content-control/trunk/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/content-control/trunk/raw/uninstall.php
- Modified: 2026-08-20T05:44:18+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/content-control/trunk/code/uninstall.php#L10-L20`.

```php
<?php
/**
 * Content Control Uninstall File
 *
 * @package ContentControl
 */

namespace ContentControl;

defined( 'WP_UNINSTALL_PLUGIN' ) || exit;

/**
 * Uninstall Content Control
 *
 * @return void
 */
function remove_wp_options_data() {
	$keys = [
		'content_control_license',
		'content_control_pro_activation_date',
		'content_control_installed_on',
		'content_control_version',
		'content_control_data_versioning',
		'content_control_debug_log_token', // delete log first.
		'content_control_known_blockTypes',
		'content_control_completed_upgrades',
	];

	foreach ( $keys as $key ) {
		delete_option( $key );
	}
}

```
