# top-10/1.6.1/uninstall.php

WebberZone Top 10 — Popular Posts, version 1.6.1. 15 lines.

- Page: https://pluginprobe.com/plugins/top-10/1.6.1/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/top-10/1.6.1/raw/uninstall.php
- Modified: 2010-02-20T14:34:54+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/top-10/1.6.1/code/uninstall.php#L10-L20`.

```php
<?php
if ( !defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') ) {
    exit();
}
	global $wpdb;
   	$table_name = $wpdb->prefix . "top_ten";
   	$table_name_daily = $wpdb->prefix . $table_name."_daily";

	$sql = "DROP TABLE $table_name";
	$wpdb->query($sql);
	$sql = "DROP TABLE $table_name_daily";
	$wpdb->query($sql);
	delete_option('ald_tptn_settings');
	delete_option('tptn_db_version');
?>
```
