How to RemoveDuplicate/Obsolete Matter Devices

I have (somehow) added duplicate matter devices. How do I delete it?

If you click it, and then open the settings (gear icon) A delete button should be visible

Thanks - I tried that…

Delete is grayed out.

When I had that problem I just restarted HA and it was enabled as long as source really not provides the entity anymore.

I had run into similar issue. Please check here how I deleted the device:

How to remove a deleted Matter device from HA? - Configuration / Matter/Thread - Home Assistant Community