# double-opt-in/3.0.60/uninstall.php

Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification, version 3.0.60. 30 lines.

- Page: https://pluginprobe.com/plugins/double-opt-in/3.0.60/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/double-opt-in/3.0.60/raw/uninstall.php
- Modified: 2024-08-13T13:52:36+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/double-opt-in/3.0.60/code/uninstall.php#L10-L20`.

```php
<?php

namespace forge12\contactform7\CF7DoubleOptIn;

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	die;
}

function drop_table_optin() {
	global $wpdb;

	// Backup Table
	$tableName   = 'f12_cf7_doubleoptin';
	$wpTableName = $wpdb->prefix . $tableName;

	$wpdb->query( "DROP TABLE IF EXISTS " . $wpTableName );
}

function drop_table_categories() {
	global $wpdb;

	// Backup Table
	$tableName   = 'f12_cf7_doubleoptin_categories';
	$wpTableName = $wpdb->prefix . $tableName;

	$wpdb->query( "DROP TABLE IF EXISTS " . $wpTableName );
}

drop_table_categories();
drop_table_optin();
```
