How to delete the GravityView data when the plugin is uninstalled?

Since version 1.15.

By default, whenever you update or deactivate/delete/re-install manually the plugin, the GravityView data like the settings, the Views, the entry approvals (stored as meta) and the entry notes created by GravityView will be kept so that you keep the plugin configuration and environment from version to version.

Since version 1.15 this behaviour could be controlled on the plugin's settings page ( Views > Settings) under the setting Remove Data on Delete.

  • Keep GravityView Data: When GravityView is deleted all GravityView data will be kept. Views, settings, etc. will be untouched. Use this as default to avoid loosing data on plugin updates.
  • Permanently Delete: When GravityView is uninstalled and deleted, by having this setting selected, it will delete all Views, GravityView entry approvals, GravityView-generated entry notes (including approval and entry creator changes), and GravityView plugin settings. No Gravity Forms data will be touched.

Note: Only users' roles with the capability gravityview_uninstall will be able to uninstall the GravityView plugin.