def _rmview(request,viewName):
  profile = getProfile(request)
  try:
    view = profile.view_set.get(name=viewName)
  except __HOLE__:
    return stderr("No such view '%s'" % viewName)
  view.delete()
  return stdout("Deleted view %s" % viewName)
dataset/ETHPy150Open tmm1/graphite/webapp/graphite/cli/commands.py/_rmview