# code-snippets/3.8.1/uninstall.php

Code Snippets, version 3.8.1. 19 lines.

- Page: https://pluginprobe.com/plugins/code-snippets/3.8.1/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/code-snippets/3.8.1/raw/uninstall.php
- Modified: 2024-11-27T16:28:50+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/3.8.1/code/uninstall.php#L10-L20`.

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

namespace Code_Snippets\Uninstall;

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

require_once __DIR__ . '/php/uninstall.php';

uninstall_plugin();

```
