prefix . "simple_history"; $wpdb->query("DROP TABLE IF EXISTS $table_name"); $table_name = $wpdb->prefix . "simple_history_contexts"; $wpdb->query("DROP TABLE IF EXISTS $table_name"); // And we are done. Simple History is ... history.