docs: def delete_group_action(model, request):
      """Delete group from database.
      """
      try:
          groups = model.parent.backend
          uid = model.model.name
          del groups[uid]
          groups()
          model.parent.invalidate()
      except Exception as e:
          return {
              'success': False,
              'message': str(e)
          }
      localizer = get_localizer(request)
      message = localizer.translate(_(
          'deleted_group',
          default='Deleted group from database'
      ))
      return {
          'success': True,
          'message': message
      }