DSMR Smart meter multiple gas meter

Today I got a new smart meter and I have multiple gas meters now of which 1 is active:

I have disabled them device wise but how can I delete them?

Try this… Get rid of old entity ID's after Shelly's are already deleted - #2 by tom_l

Thanks for replying. But the both “devices” have no entities so I cant delete them. It’s the devices I need to get rid of: