query("DELETE FROM " . $wpdb->usermeta . " WHERE meta_key='" . DUPLICATOR_ADMIN_NOTICES_USER_META_KEY . "'"); delete_option(DUP_LITE_Plugin_Upgrade::DUP_VERSION_OPT_KEY); delete_option('duplicator_usage_id'); //Remove entire storage directory if (DUP_Settings::Get('uninstall_files')) { $table_name = $wpdb->prefix . "duplicator_packages"; $wpdb->query("DROP TABLE IF EXISTS `{$table_name}`"); if (file_exists(DUP_Settings::getSsdirPathLegacy())) { SnapIO::rrmdir(DUP_Settings::getSsdirPathLegacy()); } if (file_exists(DUP_Settings::getSsdirPathWpCont())) { SnapIO::rrmdir(DUP_Settings::getSsdirPathWpCont()); } } //Remove all Settings if (DUP_Settings::Get('uninstall_settings')) { DUP_Settings::Delete(); delete_option('duplicator_ui_view_state'); delete_option('duplicator_package_active'); delete_option("duplicator_exe_safe_mode"); delete_option('duplicator_lite_inst_hash_notice'); }