[Documentation](https://groundhogg.io/documentation/) » [Action Hooks](https://groundhogg.io/documentation/#doc-action-hooks)

# groundhogg/reset

Published Wednesday, June 10, 2026 · Last updated Wednesday, June 10, 2026

Fires when the Groundhogg reset tool is triggered from the admin tools page. Use this to also reset your extension’s data when the admin performs a full Groundhogg reset.

```

do_action( 'groundhogg/reset' );
```

This hook has no arguments.

## Example

```

add_action( 'groundhogg/reset', 'my_extension_on_reset' );

/**
 * Clear extension data when Groundhogg is reset.
 *
 * @return void
 */
function my_extension_on_reset() {
    global $wpdb;
    $wpdb->query( "TRUNCATE TABLE {$wpdb->prefix}my_extension_log" );
    delete_option( 'my_extension_settings' );
}
```
