get('delete_data_on_uninstall', false), FILTER_VALIDATE_BOOLEAN)) { return; } $maze_graph_uninstaller = new \Illuminate\MazeAssistant\WordPress\Foundation\Uninstaller($maze_graph_db); // Five tables (ADRs 047 and 060). The last two names are tables of pre-release builds, dropped if a development site has them. $maze_graph_uninstaller->dropTables(['maze_graph_entries', 'maze_graph_sessions', 'maze_graph_changes', 'maze_graph_jobs', 'maze_graph_logs', 'maze_graph_memories', 'maze_graph_usage_daily']); $maze_graph_uninstaller->removeMigrations('maze-graph'); $maze_graph_uninstaller->clearOptions('maze-graph'); // Settings, stored definitions, notes and usage roll-ups. $maze_graph_uninstaller->deleteWordPressOptions('maze_graph_'); $maze_graph_uninstaller->dropSharedTablesIfUnused(); // Each person's instructions, accepted notice and onboarding completion preferences (MazeAi\Support\UserPreferences). foreach (['maze_graph_instructions', 'maze_graph_consent', 'maze_graph_onboarding_checklist_dismissed', 'maze_graph_onboarding_checklist_completed', 'maze_graph_onboarding_tour_completed'] as $maze_graph_meta_key) { delete_metadata('user', 0, $maze_graph_meta_key, '', true); }