Agree which much of what you said.
I’ve had to use these scripts in the past to delete devices and scenes I could not delete by any other means.
Devices
https://community.ezlo.com/t/ezlo-plus-device-confusion/218407/9?u=cw-kid
Scenes
https://community.ezlo.com/t/cannot-delete-corrupted-ezlo-scenes-meshbot-rules/218846/9?u=cw-kid