# Delete a function from library

**URL:** <https://discourse.nodered.org/t/delete-a-function-from-library/826>\
**Category:** Feature Requests\
**Created:** [15 June 2018 04:57 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826 "2018-06-15T04:57:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![timoline](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/timoline/32/587_2.png) [@timoline](https://discourse.nodered.org/u/timoline)\
**Post date:** [15 June 2018 04:57 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/1 "2018-06-15T04:57:15Z")

</div>

Is there a way to delete a lib function in the UI ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 June 2018 05:56 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/2 "2018-06-15T05:56:50Z")

</div>

Can you give more detail on exactly what you mean by that? What function are you trying to delete?

---

<div class="post-metadata">

**Author:** ![timoline](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/timoline/32/587_2.png) [@timoline](https://discourse.nodered.org/u/timoline)\
**Post date:** [15 June 2018 07:27 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/3 "2018-06-15T07:27:01Z")

</div>

You can create a function and save it to the library

But I made a mistake and I want to delete a function in the library, how can I do that?

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/5ccf763a776ea85fcfb6afcf4f87cba7b600ca37.jpg)

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [15 June 2018 07:34 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/4 "2018-06-15T07:34:20Z")

</div>

Within your .node-red folder theres a lib folder and within that a functions folder. Which will contain the folder if you have specified one.

You can delete the function by deleting it within that folder.

---

<div class="post-metadata">

**Author:** ![timoline](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/timoline/32/587_2.png) [@timoline](https://discourse.nodered.org/u/timoline)\
**Post date:** [15 June 2018 07:36 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/5 "2018-06-15T07:36:04Z")

</div>

Yes I found that too, but why isn’t there a delete button in the web ui ?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [15 June 2018 07:38 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/6 "2018-06-15T07:38:11Z")

</div>

I’m guessing that very few people save their functions like this so it’s never been asked for before / made it far enough up the roadmap.

But the good thing about open source software is that you can suggest the change, code it and get it into the core Node-RED package

---

<div class="post-metadata">

**Author:** ![timoline](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/timoline/32/587_2.png) [@timoline](https://discourse.nodered.org/u/timoline)\
**Post date:** [15 June 2018 07:41 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/7 "2018-06-15T07:41:57Z")

</div>

Ah ok, thx for your answer.

What is the best way to go for this feature-request?  
Here in this forum or github or…?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 June 2018 07:54 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/8 "2018-06-15T07:54:15Z")

</div>

This forum has a Development category, and in there is Feature Requests.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 June 2018 08:16 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/9 "2018-06-15T08:16:23Z")

</div>

Just keep in mind that a complete rework of the Library functionality is in the 1.0 roadmap - so any small incremental change to the existing functionality is unlikely to get any time or consideration unless its part of the roadmap item.

---

<div class="post-metadata">

**Author:** ![timoline](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/timoline/32/587_2.png) [@timoline](https://discourse.nodered.org/u/timoline)\
**Post date:** [15 June 2018 08:44 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/10 "2018-06-15T08:44:52Z")

</div>

Ok I see now...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/acb3932427de33c2ee4b818ddcdcaf4fd6279154.png)

---

<div class="post-metadata">

**Author:** ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)\
**Post date:** [26 June 2018 14:02 UTC](https://discourse.nodered.org/t/delete-a-function-from-library/826/11 "2018-06-26T14:02:13Z")

</div>

As part of the Library Redesign, would it be possible to add these 3 options:

> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/309939437dd5ca02620c5dcc9bc4eba15bc80321.png)

to the "Export to Library" popup (although perhaps they don't all make sense)?

> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/373e498624267495956618e137ff2bd3425f9869.png)

Since there is no way to select the current "tab" with its information, that cannot be exported, it seems. It's also hard to know what is actually being exported -- so some of my users have lost parts of flows, especially when they try to update a previous version of the library file... being able to launch the remote diff viewer before saving would be helpful here.
