When a request is sent to the backend for a user to be removed from a group, we can check if there are no users in the group after the user is removed, and then call the function to delete the group itself.
In the function to delete a group, we can call a function that removes any events from that group as well.
When a request is sent to the backend for a user to be removed from a group, we can check if there are no users in the group after the user is removed, and then call the function to delete the group itself.
In the function to delete a group, we can call a function that removes any events from that group as well.