'Remove this host from your LogicMonitor account'

def remove(self):

    self.module.debug('Running    Host.remove...')
    if self.info:
        self.module.debug('Host    registered')
        self.module.debug('System    changed')
        self.change = True
        if self.check_mode:
            self.exit(changed=True)
        self.module.debug("Making    RPC    call    to    'deleteHost'")
        resp = json.loads(self.rpc('deleteHost', {'hostId': self.info['id'], 'deleteFromSystem': True, 'hostGroupId': 1}))
        if (resp['status'] == 200):
            self.module.debug(resp)
            self.module.debug('RPC    call    succeeded')
            return resp
        else:
            self.module.debug('RPC    call    failed')
            self.module.debug(resp)
            self.fail(msg=resp['errmsg'])
    else:
        self.module.debug('Host    not    registered')
