# How to disconnect runner before deleting it?

**URL:** <https://discuss.elastic.co/t/how-to-disconnect-runner-before-deleting-it/194065>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [August 6, 2019, 4:56pm UTC](https://discuss.elastic.co/t/how-to-disconnect-runner-before-deleting-it/194065 "2019-08-06T16:56:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel\_a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_a/32/48390_2.png) [@daniel\_a](https://discuss.elastic.co/u/daniel_a)\
**Post date:** [August 6, 2019, 4:56pm UTC](https://discuss.elastic.co/t/how-to-disconnect-runner-before-deleting-it/194065/1 "2019-08-06T16:56:57Z")

</div>

I'm trying to delete a runner, but the delete button in the platform is grayed out, and it shows the following message: "Disconnect this runner before deleting it."

I can't find how to disconnect a runner in the ECE documentation either.

[https://www.elastic.co/guide/en/cloud-enterprise/current/Platform\_-\_Runners.html#ece-request\_218](https://www.elastic.co/guide/en/cloud-enterprise/current/Platform_-_Runners.html#ece-request_218)

Can I just run a delete command to delete it?

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [August 6, 2019, 5:20pm UTC](https://discuss.elastic.co/t/how-to-disconnect-runner-before-deleting-it/194065/2 "2019-08-06T17:20:08Z")

</div>

Follow [https://www.elastic.co/guide/en/cloud-enterprise/current/ece-uninstall.html](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-uninstall.html) to wipe the runner, the runner will be deletable after that (sometimes it can take a minute or so)

(if the runner is a director you also need to "demote it" aka remove ZK from the quorum)

The doc for deleting the runner are: [https://www.elastic.co/guide/en/cloud-enterprise/current/ece-delete-runner.html](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-delete-runner.html)

---

<div class="post-metadata">

**Author:** ![daniel\_a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_a/32/48390_2.png) [@daniel\_a](https://discuss.elastic.co/u/daniel_a)\
**Post date:** [August 6, 2019, 5:32pm UTC](https://discuss.elastic.co/t/how-to-disconnect-runner-before-deleting-it/194065/3 "2019-08-06T17:32:15Z")

</div>

I was just looking into running this command. Thanks!

---

<div class="post-metadata">

**Author:** ![daniel\_a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_a/32/48390_2.png) [@daniel\_a](https://discuss.elastic.co/u/daniel_a)\
**Post date:** [August 6, 2019, 5:33pm UTC](https://discuss.elastic.co/t/how-to-disconnect-runner-before-deleting-it/194065/4 "2019-08-06T17:33:58Z")

</div>

It worked, thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 20, 2019, 5:34pm UTC](https://discuss.elastic.co/t/how-to-disconnect-runner-before-deleting-it/194065/5 "2019-08-20T17:34:02Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
