I am developing a little plugin that has couple options. For that i use this code:
add_action('admin_init', array($this, 'pa_register_settings'));
function pa_register_settings()
{
register_setting('pa_options', 'pa_settings');
register_setting('pa_options', 'pa_metrics');
register_setting('pa_options', 'pa_token');
}
I would like to know what is the proper way to remove those settings from database when plugin is uninstalled?