# code-snippets/4.0.0-beta.2/uninstall.php

Code Snippets, version 4.0.0-beta.2. 22 lines.

- Page: https://pluginprobe.com/plugins/code-snippets/4.0.0-beta.2/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/code-snippets/4.0.0-beta.2/raw/uninstall.php
- Modified: 2026-08-04T13:35:40+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/code-snippets/4.0.0-beta.2/code/uninstall.php#L10-L20`.

```php
<?php
/**
 * Cleans up data created by this plugin
 *
 * @package Code_Snippets
 * @since   2.0.0
 */

namespace Code_Snippets;

use Code_Snippets\Core\Uninstaller;

// Ensure this plugin is actually being uninstalled.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) || ( defined( 'CODE_SNIPPETS_PRO' ) && CODE_SNIPPETS_PRO ) ) {
	return;
}

require_once __DIR__ . '/php/Core/Uninstaller.php';

$uninstaller = new Uninstaller();
$uninstaller->uninstall_plugin();

```
