Upgrading & Uninstalling
Upgrading Forms
Section titled “Upgrading Forms”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire runs
___upgrade()automatically:Terminal window composer update trk/processwire-formsphp vendor/bin/wire module:refresh
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Forms), Add Module from URL, or Add Module from Upload (ZIP archive) to replace the module files. - Click Modules -> Refresh so ProcessWire detects the new version and executes
___upgrade()automatically.
- Replace
site/modules/Forms/with the new release directory. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh) so___upgrade()executes cleanly.
Uninstalling Forms
Section titled “Uninstalling Forms”Uninstalling Forms from Modules (or via php vendor/bin/wire module:uninstall Forms) runs ___uninstall(), which performs a complete teardown:
- Discovers and purges all internal
FormsBlueprintstypes and all compiledforms-sub-{slug}submission blueprints and items. - Drops all 3 managed SQL tables owned by
FormsTables::OWNER(forms_nonces,forms_rate_limits,forms_ab_counters). - Cascades deletion of private attachments (
deletePrivateAttachments([], true)), removessite/assets/cache/Forms/, clearsFormsWireCache entries (forms_signing_secret,forms_*), and deletes theformslog. - Removes the
forms-adminandforms-submissionspermissions and unregistersReactworkspace, widget, and command-search extensions. - Preserves any version-controlled YAML/PHP files you created manually in
site/forms/.