'Uninstall (i.e. delete) autotest. Removes the autotest client install
from the specified host.
:params host a Host instance from which the client will be removed'

def uninstall(self, host=None):

    if (not self.installed):
        return
    if self.server_system_wide_install:
        uninstall_cmd = UNINSTALL_CLIENT_CMD_MAPPING.get(self.os_vendor, None)
        if (uninstall_cmd is not None):
            logging.info('Trying    to    uninstall    autotest    using    distro    provided    package    manager')
            host.run(uninstall_cmd)
        return
    if (not host):
        host = self.host
    autodir = host.get_autodir()
    if (not autodir):
        return
    host.run(('rm    -rf    %s' % utils.sh_escape(autodir)), ignore_status=True)
    host.set_autodir(None)
    self.installed = False
