# sellkit/1.1.4/uninstall.php

SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster, version 1.1.4. 28 lines.

- Page: https://pluginprobe.com/plugins/sellkit/1.1.4/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/sellkit/1.1.4/raw/uninstall.php
- Modified: 2022-04-14T05:16:22+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/sellkit/1.1.4/code/uninstall.php#L10-L20`.

```php
<?php
/**
 * Sellkit Uninstall
 *
 * Uninstalling Sellkit deletes tables, and options.
 *
 * @package Sellkit\Uninstaller
 * @version NEXT
 */

defined( 'WP_UNINSTALL_PLUGIN' ) || exit;

// Include file of Database Class.
require_once dirname( __FILE__ ) . '/includes/db.php';

$options = get_option( 'sellkit', [] );

if ( '1' === $options['delete_data'] ) {
	// Drop Sellkit admin tables.
	Sellkit\Database::drop_all_tables();

	// Delete sellkit option from wp_options.
	delete_option( 'sellkit' );

	// Clear any cached data that has been removed.
	wp_cache_flush();
}

```
