# Stoping block "function"

**URL:** <https://discourse.nodered.org/t/stoping-block-function/19259>\
**Category:** General\
**Created:** [17 December 2019 13:41 UTC](https://discourse.nodered.org/t/stoping-block-function/19259 "2019-12-17T13:41:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HDM](https://avatars.discourse-cdn.com/v4/letter/h/8797f3/32.png) [@HDM](https://discourse.nodered.org/u/HDM)\
**Post date:** [17 December 2019 13:41 UTC](https://discourse.nodered.org/t/stoping-block-function/19259/1 "2019-12-17T13:41:29Z")

</div>

Good afternoon  
I in block "function" wrote code with function "while" after start looped how to stop or delete this block "function"  
Thanks

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [17 December 2019 14:28 UTC](https://discourse.nodered.org/t/stoping-block-function/19259/2 "2019-12-17T14:28:36Z")

</div>

If you restart Node-RED using the `--safe` option, your flows will not execute and you will be able to edit your function node.

---

<div class="post-metadata">

**Author:** ![HDM](https://avatars.discourse-cdn.com/v4/letter/h/8797f3/32.png) [@HDM](https://discourse.nodered.org/u/HDM)\
**Post date:** [18 December 2019 15:43 UTC](https://discourse.nodered.org/t/stoping-block-function/19259/3 "2019-12-18T15:43:09Z")

</div>

Большое СПАСИБО, буде пробывать
