[core] Simplify uninstallation procedure