Rejestr_uninstall_hook

register_uninstall_hook(__FILE__, 'pluginprefix_function_to_run');
claude61340