Resolved !!
There’s a hook register_uninstall_hook($file, $callback)
and if you click in the amministrator panel/plugins the link ‘delete’
after you disinstall the plugin, the function hooks your function
for clen all the features.
If you need to configure the ftp server you can view this
Link