# Can Ghost flows exist? how to delete them?

**URL:** <https://community.homey.app/t/can-ghost-flows-exist-how-to-delete-them/95716>\
**Category:** Questions & Help\
**Created:** [November 25, 2023, 11:23am UTC](https://community.homey.app/t/can-ghost-flows-exist-how-to-delete-them/95716 "2023-11-25T11:23:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmeester](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pmeester/32/17275_2.png) [@pmeester](https://community.homey.app/u/pmeester)\
**Post date:** [November 25, 2023, 11:23am UTC](https://community.homey.app/t/can-ghost-flows-exist-how-to-delete-them/95716/1 "2023-11-25T11:23:38Z")

</div>

I have been modifying flows, renaming them and ultimately replacing them with advanced flows with the same name.

Now I see in the log messages from a flow that does no longer appear in the list of flows. Could it be possible that the flow is still hanging around somewhere and is still active?

Would there be a way to search for flows from a script?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 25, 2023, 9:23pm UTC](https://community.homey.app/t/can-ghost-flows-exist-how-to-delete-them/95716/2 "2023-11-25T21:23:40Z")

</div>

> [@pmeester](#):
>
> replacing them with advanced flows with the same name

That doesn’t sound like a good idea to me. I would at least add a trailing “New” or “AF” or whatever to the new Adv. flows

But as you discovered, yea, one can name flows exactly the same 🙄🤔 (don’t ask me why).  
It’s possible, while Homey only uses the generated flow ID’s, which never are the same.  
But, as you can see, when I search for a part of a flow name, it shows both duplicate flows, it doesn’t get ‘hidden’ or something:

 ![Screenshot_20231125-221435_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/1/91029906efc383d380338474d0ca12c4038753a7.jpeg)

1. 

You can try this Device Capabilities app flowcard, when you know what card(s) were used in the flow, so it’s able to find any flow with that particular card:

 ![Screenshot_20231125-221904_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/0914718b87248c892f3ceff53f8bdd365a4f488d.jpeg)

1. 

This below should spit out each and every flow:  
You can run these commands in [Web API Playground](https://tools.developer.homey.app/tools/api-playground)  
For standard flows:  
`Homey.flow.getFlows();`

For advanced flows:  
`Homey.flow.getAdvancedFlows();`

---

<div class="post-metadata">

**Author:** ![pmeester](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pmeester/32/17275_2.png) [@pmeester](https://community.homey.app/u/pmeester)\
**Post date:** [November 25, 2023, 10:35pm UTC](https://community.homey.app/t/can-ghost-flows-exist-how-to-delete-them/95716/3 "2023-11-25T22:35:37Z")

</div>

Thanks for the info. In the meantime I found that it was my bad. Forgot about a flow in a corner 😵‍💫
