github.com/outbrain/consul@v1.4.5/website/source/docs/commands/force-leave.html.markdown.erb (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: Force Leave" 4 sidebar_current: "docs-commands-forceleave" 5 description: |- 6 The `force-leave` command forces a member of a Consul cluster to enter the left state. If the member is still actually alive, it will eventually rejoin the cluster. The true purpose of this method is to force remove failed nodes. 7 --- 8 9 # Consul Force Leave 10 11 Command: `consul force-leave` 12 13 The `force-leave` command forces a member of a Consul cluster to enter the 14 "left" state. If the member is still actually alive, it will 15 eventually rejoin the cluster. The true purpose of this method is to force 16 remove "failed" nodes. 17 18 Consul periodically tries to reconnect to "failed" nodes in case it is a 19 network partition. After some configured amount of time (by default 72 hours), 20 Consul will reap "failed" nodes and stop trying to reconnect. The `force-leave` 21 command can be used to transition the "failed" nodes to "left" nodes more 22 quickly. 23 24 This can be particularly useful for a node that was running as a server, 25 as it will be removed from the Raft quorum. Note that `force-leave` cannot be 26 used to force removal of nodes that are outside of the datacenter. 27 28 ## Usage 29 30 Usage: `consul force-leave [options] node` 31 32 #### API Options 33 34 <%= partial "docs/commands/http_api_options_client" %> 35