| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 13:56:46 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_uninstalling/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=V%2FekWCQu762U5lpwtyAlqsBVZY6J%2BwC5loeIxYI2b9Rgs6lQW7EdjAaYUI1Nb5uF6USejf0KWpXW4vemywGeH8y7Qyl9KVVB8pT7K2o1ji0GWxNh"}]}
cf-ray: 9b51901b5915c172-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 13:56:47 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=sDUnQYVYaGFz%2F4pPYjyGi3Eb8oHpEwxZXBgZGRcIzbh%2BEgHSnd%2BfxUO6OQ1r%2FrWDMVcCTQZz7KJhTWZXlhHUjTWAmaLHUsWAsHYT0sNTDBo02LOe"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b51901eaa72c172-BLR
gform_uninstalling - Gravity Forms Documentation
gform_uninstalling
Description
The gform_uninstalling action hook can be used to perform any clean-up tasks when the uninstall button has been clicked on the Forms > Settings > Uninstall page.
Usage
The action hook which runs during uninstall would be used like so:
add_action( 'gform_uninstalling', 'your_function_name' );
Parameters
This hook has no parameters.
Examples
Delete an option on uninstall
This example shows how you can delete custom options from the wp_options table when Gravity Forms is uninstalled.
add_action( 'gform_uninstalling', function() {
delete_option( 'your_option_name );
} );
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Since
This action hook was added in Gravity Forms v2.6.9.
Source Code
This action hook is located in GFSettings::settings_uninstall_page() in settings.php.