# \[Script\] Mass delete all unavailable devices or broken flows at once

**URL:** <https://community.homey.app/t/script-mass-delete-all-unavailable-devices-or-broken-flows-at-once/77918>\
**Category:** Tutorials\
**Tags:** homey-pro\
**Created:** [March 17, 2023, 4:50pm UTC](https://community.homey.app/t/script-mass-delete-all-unavailable-devices-or-broken-flows-at-once/77918 "2023-03-17T16:50:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 17, 2023, 9:38pm UTC](https://community.homey.app/t/script-mass-delete-all-unavailable-devices-or-broken-flows-at-once/77918/4 "2023-03-17T21:38:57Z")

</div>

Here, another script that may help:

> [@\[APP\]\[Pro\] Simple (Sys) LOG - Use this app for Simple (Sys) Logging](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/7):
>
> Script to remove all flowcards in Flows and Advanced Flows from a certain app Use this script to remove all flowcards from a certain app from flows and advanced flows. Lines are removed too, tokens are not. Execute this in the [WebApi Playground](https://tools.developer.homey.app/tools/api-playground). Note: Work in progress. const version = '1.0.5'; //You need to run this script in the API Playground to really remove all flowcards. //const flowNames = ['AddLogCards (Test)', 'DeleteCardsFlow']; // Use this line to run a few select flows by name. …

---

_[View the full topic](https://community.homey.app/t/script-mass-delete-all-unavailable-devices-or-broken-flows-at-once/77918)._
