Skip to content

Upgrading & Uninstalling

Before uninstalling Navigation, export your menus and hierarchical node trees to JSON and remove $navigation->render() calls from your frontend templates.

  1. Export all menus and nodes to a portable JSON archive:

    Terminal window
    php vendor/bin/wire navigation:export site/assets/backups/navigation-final-backup.json --json
  2. Remove template references to $navigation->render(), $navigation->tree(), $navigation->renderBreadcrumbs(), $navigation->renderJsonLd(), and any custom NodeTargetResolverInterface registrations.

  3. Uninstall companions first, then Navigation:

    Terminal window
    php vendor/bin/wire module:uninstall ProcessNavigation --json
    php vendor/bin/wire module:uninstall MarkupNavigation --json
    php vendor/bin/wire module:uninstall Navigation --json

What Navigation::___uninstall() Removes vs. Preserves

Section titled “What Navigation::___uninstall() Removes vs. Preserves”
Artifact Action on Uninstall Details
Database Menus & Nodes (navigation-menus, navigation-nodes, navigation-node-*) Purged Deleted cleanly from Entries storage and unregistered from the schema registry.
Permissions (navigation, navigation-admin) Removed Deleted from ProcessWire permissions.
Admin Page (Setup -> Navigation) Removed Removed when ProcessNavigation uninstalls.
WireCache & Hooks Cleared Clears the navigation cache namespace, PageSyncManager hooks, and pull-discovery cache.
YAML Menu Files (site/navigation/*.yaml) Preserved Your version-controlled files on disk are never deleted.

Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.

  1. Update the package and refresh modules so ProcessWire runs ___upgrade() automatically:

    Terminal window
    composer update trk/processwire-navigation
    php vendor/bin/wire module:refresh

Next steps