# plugins-list/2.7/uninstall.php

Plugins List, version 2.7. 20 lines.

- Page: https://pluginprobe.com/plugins/plugins-list/2.7/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/plugins-list/2.7/raw/uninstall.php
- Modified: 2024-04-22T06:24:56+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/plugins-list/2.7/code/uninstall.php#L10-L20`.

```php
<?php
/**
 * Uninstaller
 *
 * Uninstall the plugin by removing any options from the database
 *
 * @package  plugins-list
 */

// If the uninstall was not called by WordPress, exit.

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit(); }

// Delete cache.

delete_transient( 'plugins_list' );

delete_transient( 'artiss_plugins_list' ); // Previous version - kept to ensure this is housekept on older versions.

```
