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

Here, another script that may help: