# Feature request: Confirmation on delete (OpenFlow)

**URL:** <https://discourse.openiap.io/t/feature-request-confirmation-on-delete-openflow/1671>\
**Category:** Issues and feature requests\
**Created:** [July 10, 2024, 2:24pm UTC](https://discourse.openiap.io/t/feature-request-confirmation-on-delete-openflow/1671 "2024-07-10T14:24:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewK](https://discourse.openiap.io/user_avatar/discourse.openiap.io/andrewk/32/1476_2.png) [@AndrewK](https://discourse.openiap.io/u/AndrewK)\
**Post date:** [July 10, 2024, 2:24pm UTC](https://discourse.openiap.io/t/feature-request-confirmation-on-delete-openflow/1671/1 "2024-07-10T14:24:48Z")

</div>

Hi,

It appears that most of the OpenFlow items can deleted without any confirmation. This makes it very easy to missclick delete something.

Looking through the code, I’m not sure where the routing for these go. I’ve tried retracing how the queue purge handles the confirmation, but tbh the wiring in openflow between the types a bit escapes me.

So the request is → could confirmations for delete via UI be added to all deletes?  
If you don’t have the time for it, if you could give a short intro on how to add it in a way that’s consistent with what you want, we could take a stab at it.

I’m assuming it would be similar to this:

> <https://github.com/open-rpa/openflow/blob/e384be22396175c0ce8fa899ed376f5b9f21091a/OpenFlow/src/public/CommonControllers.ts#L818>

But that’s just a guess, not sure if that’s too deep in the stack.  
To keep current UX consistent, the delete confirmations could be a config flag I think?

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [July 11, 2024, 7:57am UTC](https://discourse.openiap.io/t/feature-request-confirmation-on-delete-openflow/1671/2 "2024-07-11T07:57:16Z")

</div>

The philosophy was.  
If you get a prompt, you need to press enter too. It quickly becomes muscle memory, and you still accidentally delete something by mistake. Since this is annoying when you need to delete a lot of things and there is no “select all” and delete, it was easier to just keep it simple (the new UI has multiselect AND prompts, so I cannot wait until that is done).

But you are 100% right, it’s best practice to have a delete prompt everywhere. Shame on me! 🙂  
It’s **very** bad practice to use prompt/input/confirm in JavaScript; it blocks everything and for RPA robots, it’s very hard to tackle. So, I would not be a big fan of using those, but it’s **SSOOO** easy to implement. I guess that would be an okay workaround for now.

Changes must be done in [GitHub - open-rpa/openflow-web](https://github.com/open-rpa/openflow-web) since I’m splitting up OpenFlow and the web interface into two different projects for 1.5.10.

For most pages, the delete is handled in the entitiesCtrl class inside [CommonControllers](https://github.com/open-rpa/openflow-web/blob/master/src/CommonControllers.ts#L812).  
The last delete(s) are in the [DuplicatesCtrl](https://github.com/open-rpa/openflow-web/blob/master/src/Controllers.ts#L5170). I’m not sure if this should prompt.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openiap.io/uploads/default/original/2X/a/a1ca7b164ac9a826839704d9ac82c7b5e6bcf557.png) [@system](https://discourse.openiap.io/u/system)\
**Post date:** [July 18, 2024, 7:58am UTC](https://discourse.openiap.io/t/feature-request-confirmation-on-delete-openflow/1671/3 "2024-07-18T07:58:09Z")

</div>

Closed on July 18, 2024, 7:58am UTC

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