# \[BUG\] Suppression device Zigbee

**URL:** <https://community.gladysassistant.com/t/bug-suppression-device-zigbee/7149>\
**Category:** Configuration\
**Tags:** zigbee2mqtt\
**Created:** [April 4, 2022, 6:56pm UTC](https://community.gladysassistant.com/t/bug-suppression-device-zigbee/7149 "2022-04-04T18:56:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 4, 2022, 8:18pm UTC](https://community.gladysassistant.com/t/bug-suppression-device-zigbee/7149/2 "2022-04-04T20:18:25Z")

</div>

I can’t answer your questions about the choices made during the development of the Zigbee2mqtt integration, but I can answer your question about the UI freeze. This is a known and «&nbsp;normal&nbsp;» limitation of the current implementation of device removal.

When you try to delete a device with tens or hundreds of thousands of states, the database struggles a bit to delete everything in cascade at once, and it can take several minutes to delete everything depending on the speed of your disk. During this time, the instance is frozen because the database is busy (all the bandwidth of your disk is saturated by the cascade deletion).

We have a medium-term solution, but it’s a development. I was recently talking about it here on the forum:

> [@\[Recherche de testeurs\] Nouvelle image Gladys Raspberry Pi OS sous Bullseye](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/57?u=pierre-gilles):
>
> Je sais ce qu’il se passe, tu as du effectivement supprimer un appareil. Sauf qu’actuellement dans Gladys, quand tu supprime un appareil, ça va supprimer en cascade toutes les device\_features ainsi que les états de ces features smiley Tu l’as compris, si derrière cet appareil a des milliers d’états, ça peut prendre 2 minutes et pendant ce temps là, la DB est bloquée car c’est une énorme transaction qui prend toute la bande passante du disque. On a pensé à une solution si ce problème devie…

The only thing I can advise you is to just wait 😃

---

_[View the full topic](https://community.gladysassistant.com/t/bug-suppression-device-zigbee/7149)._
