'Logout of an appliance'

def logout(self):

    result = None
    try:
        result = self.delete('/access/v1', base_path='/api')
    except RestClientError:
        pass
    self.headers.clear()
    self.do_logout = False
    return result
