Setting correct operation type for uninstalling agent.