async def METHOD_NAME(group_id: str):
    try:
        group = Group.get_by_id(group_id)
    except Group.DoesNotExist:
        return
    if Shape.filter(group=group_id).count() == 0:
        group.delete_instance(True)