🇧🇪Belgium apoc1
I went into the database to see in which way Group entities and Flags are connected in any way and use that as a starting point to dive into the code, but with no luck. I lack time to debug this and ended up just disabling accounts instead of deleting them for the time being.
Anyhow, I think there should be no situation that all existing flags on a system get deleted, by just deleting an user account. So speaking for Flag, this is something that should be thought about.