Replaced deprecated function for uninstall