Skip to content

Upgrading & Uninstalling

Inertia stores only its module configuration in ProcessWire and creates no custom database tables.

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-inertia
    php vendor/bin/wire module:refresh
  1. Uninstall any dependent modules

    Open Modules > Site and uninstall React (and any modules depending on React) if they are installed.

  2. Uninstall Inertia

    Open Modules > Configure > Inertia, expand the Uninstall section at the bottom, check Uninstall, and click Submit.

    Or run the CLI command:

    Terminal window
    php vendor/bin/wire module:uninstall Inertia

    Inertia::___uninstall() clears module-managed caches and removes Inertia hooks cleanly.

  3. Remove the Composer package (optional)

    Terminal window
    composer remove trk/processwire-inertia
  4. Clean up project starter files (optional)

    Inertia never deletes files you own inside site/. If you no longer need them, remove these files manually:

    • site/templates/_inertia.php
    • site/templates/assets/js/inertia.ts and site/templates/assets/js/types/inertia.d.ts
    • Custom providers inside site/inertia/
    • Any use InteractWithInertia; references inside site/classes/DefaultPage.php

Next steps