# Add delete button to dropdown options

**URL:** <https://discourse.nodered.org/t/add-delete-button-to-dropdown-options/10400>\
**Category:** General\
**Created:** [21 April 2019 16:45 UTC](https://discourse.nodered.org/t/add-delete-button-to-dropdown-options/10400 "2019-04-21T16:45:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [21 April 2019 16:45 UTC](https://discourse.nodered.org/t/add-delete-button-to-dropdown-options/10400/1 "2019-04-21T16:45:25Z")

</div>

How can i add a delete button to md-option ? here's my flow.  
[flows.json](https://discourse.nodered.org/uploads/short-url/fs7OlDiTdy6UqazY61Vi8GsjGnY.json) (1.1 KB)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 April 2019 17:19 UTC](https://discourse.nodered.org/t/add-delete-button-to-dropdown-options/10400/2 "2019-04-21T17:19:08Z")

</div>

If it's the standard ui dropdown node, you could populate it with `msg.options` that could be retrieved from an object stored in flow or global. Then you could have a button that triggered a function to remove the item from your flow/global object and then repopulate the dropdown.

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [21 April 2019 17:55 UTC](https://discourse.nodered.org/t/add-delete-button-to-dropdown-options/10400/3 "2019-04-21T17:55:07Z")

</div>

okay, this seems too logical. i will try it. Thanks.
