public static function maybe_uninstall_table( Table $table, \wpdb $wpdb = null ) {

		$wpdb = $wpdb ?: $GLOBALS['wpdb'];

		if ( static::is_table_installed( $table, $wpdb ) ) {

			$tn = $table->get_table_name( $wpdb );

			$wpdb->query( "DROP TABLE IF EXISTS `{$tn}`" );
			static::fire_plugin_event( $table, 'deleted' );

			delete_option( $tn . '_version' );

			return true;
		}

		return false;
	}
public static function maybe_uninstall_table( Table $table, \wpdb $wpdb = null ) {

		$wpdb = $wpdb ?: $GLOBALS['wpdb'];

		if ( static::is_table_installed( $table, $wpdb ) ) {

			$tn = $table->get_table_name( $wpdb );

			$wpdb->query( "DROP TABLE IF EXISTS `{$tn}`" );
			static::fire_plugin_event( $table, 'deleted' );

			delete_option( $tn . '_version' );

			return true;
		}

		return false;
	}
public static function maybe_uninstall_table ( Table $ table , \ wpdb $ wpdb = null ) { $ wpdb = $ wpdb ? : $ GLOBALS [ 'wpdb' ] ; if ( static :: is_table_installed ( $ table , $ wpdb ) ) { $ tn = $ table -> get_table_name ( $ wpdb ) ; $ wpdb -> query ( "DROP TABLE IF EXISTS `{$tn}`" ) ; static :: fire_plugin_event ( $ table , 'deleted' ) ; delete_option ( $ tn . '_version' ) ; return true ; } return false ; }
Maybe delete a table.

@since 2.0

@param Table $table
@param \wpdb $wpdb

@return bool Return true if table is installed and deleted. False otherwise.
Maybe delete a table .