# Delete a flow and ui objects connected to it are not deleted as well?

**URL:** https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074
**Category:** General
**Created:** [14 July 2020 17:07 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074 "2020-07-14T17:07:22Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)
#### Post date: [14 July 2020 17:07 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074/1 "2020-07-14T17:07:22Z")

</div>

Delete a flow and ui objects connected to it are not deleted as well? These are not shared ui objects. Shared ui objects, referenced by other flows, should not be deleted. But ui objects only linked to a single flow, should be removed? I get a list of orphaned objects, I have to delete one at at a time. No understanding this behavior.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [14 July 2020 19:13 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074/2 "2020-07-14T19:13:40Z")

</div>

1 - Do you mean the configuration for the object?  
2 - By "Delete a flow" do you mean deleting a tab the ui object is on, or deleting the flow that contains the ui object?  
3 - can you give an example or an image of what you are doing?

---

<div class="post-metadata">

### Author: ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)
#### Post date: [14 July 2020 20:51 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074/3 "2020-07-14T20:51:21Z")

</div>

For example I have a flow tab, I edit it, and click the delete button. Specifically what is orphaned is the ui\_group object not the specific ui\_objects with in the flow. I am suggesting that the ui\_group object, once the last associated ui\_control is deleted, the now empty ui\_group object should be removed.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [14 July 2020 21:53 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074/4 "2020-07-14T21:53:11Z")

</div>

You may just be editing things and want to add something back to that group in a minute.. The editor can't know that.

---

<div class="post-metadata">

### Author: ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)
#### Post date: [15 July 2020 18:27 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074/5 "2020-07-15T18:27:44Z")

</div>

There has to be some way to design this, so you don't end up having to delete 10s of objects at times. How about adding a delete all button? Or a select-able list, so operator can tag the ones to delete, then hit a delete button to get rid of the selected items?

Once you do a deployment, the logic would be you are done editing. So when it says you have orphaned ui\_groups or nodes, you can select delete to get rid of the now orphaned ui\_groups?

---

<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 July 2020 19:19 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074/6 "2020-07-15T19:19:32Z")

</div>

> [@Nodi.Rubrum](#):
>
> So when it says you have orphaned ui\_groups or nodes, you can select delete to get rid of the now orphaned ui\_groups?

Open the Configuration Nodes sidebar (or click the link in the message about unused config nodes when you deploy). Select the 'unused' filter. Select the nodes and hit delete.

---

<div class="post-metadata">

### Author: ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)
#### Post date: [15 July 2020 20:21 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074/7 "2020-07-15T20:21:09Z")

</div>

So there is a way to select all of them in one shot? Delete in mass? Right now I only see how to delete them one at a time... will look again.

---

<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 July 2020 20:21 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074/8 "2020-07-15T20:21:59Z")

</div>

Ctrl-click on each one, or make sure the config node sidebar has focus (ie click on it) then Ctrl-A to select all.

---

<div class="post-metadata">

### Author: ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)
#### Post date: [15 July 2020 20:58 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074/9 "2020-07-15T20:58:11Z")

</div>

Ah! Cool. Thanks. Missed that before.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [13 September 2020 20:58 UTC](https://discourse.nodered.org/t/delete-a-flow-and-ui-objects-connected-to-it-are-not-deleted-as-well/30074/10 "2020-09-13T20:58:11Z")

</div>

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