def _rmgraph(request,graphName):
  profile = getProfile(request,allowDefault=False)
  try:
    graph = profile.mygraph_set.get(name=graphName)
  except __HOLE__:
    return stderr("No such graph %s" % graphName)
  graph.delete()
  return stdout("Deleted graph %s" % graphName)
dataset/ETHPy150Open tmm1/graphite/webapp/graphite/cli/commands.py/_rmgraph