def force_leave(self, node):
            """
            This endpoint instructs the agent to force a node into the left
            state. If a node fails unexpectedly, then it will be in a failed
            state. Once in the failed state, Consul will attempt to reconnect,
            and the services and checks belonging to that node will not be
            cleaned up. Forcing a node into the left state allows its old
            entries to be removed.

            *node* is the node to change state for.
            """

            return self.agent.http.get(
                lambda x: x.code == 200,
                '/v1/agent/force-leave/%s' % node)
dataset/ETHPy150Open cablehead/python-consul/consul/base.py/Consul.Agent.force_leave/original