# merchant/2.3.2/uninstall.php

Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together &amp; More for WooCommerce – Merchant, version 2.3.2. 17 lines.

- Page: https://pluginprobe.com/plugins/merchant/2.3.2/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/merchant/2.3.2/raw/uninstall.php
- Modified: 2026-09-17T17:48:06+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/merchant/2.3.2/code/uninstall.php#L10-L20`.

```php
<?php
/**
 * Merchant Uninstall
 */

defined( 'WP_UNINSTALL_PLUGIN' ) || exit;

global $wpdb, $wp_version;

/*
 * Only remove ALL merchant & merchant-pro data if WC_REMOVE_ALL_DATA constant is set to true in user's
 * wp-config.php. This is to prevent data loss when deleting the plugin from the backend
 * and to ensure only the site owner can perform this action. (Copied from WooCommerce).
 */
if ( defined( 'WC_REMOVE_ALL_DATA' ) && true === WC_REMOVE_ALL_DATA ) {
	$wpdb->query( $wpdb->prepare( "DROP TABLE IF EXISTS %s", $wpdb->prefix . 'merchant_sales_notifications' ) );
}
```
